fn escape_json( writer: &mut impl Write, text: &str, remaining: &mut usize, ) -> Result
Writes text with JSON string escapes, and subtracts the bytes that escapes add from remaining.
text
remaining