pub fn write_string(out: &mut String, s: &str, ensure_ascii: bool)Expand description
Python’s string escaping: " \ and the C escapes, other control
characters as \u00XX; with ensure_ascii, everything above U+007F as
\uXXXX (surrogate pairs beyond the BMP). / is never escaped.