json_dump

Function json_dump 

Source
pub fn json_dump(json: &JsonValue, ensure_ascii: bool) -> String
Expand description

Dump a JsonValue to string.

For example,

use dade::{JsonValue, json_dump};

let ret = json_dump(&JsonValue::Null, false);
assert_eq!(ret, "null");

let ret = json_dump(&JsonValue::Bool(true), false);
assert_eq!(ret, "true");