Skip to main content

write_json_string

Function write_json_string 

Source
pub fn write_json_string(s: &str, out: &mut String)
Expand description

Append s as a JSON string literal, escaped as RFC 8259 requires: " and \\ escaped, control characters as \\uXXXX (with the short forms for \\b \\f \\n \\r \\t), everything else as itself.