Skip to main content

stringify

Function stringify 

Source
pub fn stringify(value: &Value, options: &StringifyOptions<'_>) -> String
Expand description

stringify a Value into object notation.

for the other way see parse

ยงexample

let value = Value::from(vec![1, 2, 3]);
 assert_eq!(stringify(value, &StringifyOptions::default()), "[1, 2, 3]");