pub fn stringify(value: &JsonValue) -> JsonGenerateResult
Expand description
Serialize the given JsonValue
value to String
without indentation. This method is almost identical to
JsonValue::stringify
but exists for a historical reason.
use tinyjson::JsonValue;
let v = JsonValue::from(vec![1.0.into(), 2.0.into(), 3.0.into()]);
let s = tinyjson::stringify(&v).unwrap();
assert_eq!(s, "[1,2,3]");