pub fn write_text(out: &mut String, value: &str)Expand description
Write a text as a JSON text, with the quotes.
The escapement is the one of the format: the quote and the reverse solidus are spelled out, and so are the control characters, which have no spelling of their own. Everything else – including the letters that are not ASCII – goes through as it is, which the format allows and which keeps a report of a script in the language the script was written in.