pub fn json_escape(input: &str) -> StringExpand description
Escape a string for safe inclusion inside a JSON string literal.
Escapes ", \\, the C0 control range (U+0000..=U+001F) and the common
shorthand escapes. The result does not include the surrounding quotes.