Skip to main content

escape_json

Function escape_json 

Source
fn escape_json(
    writer: &mut impl Write,
    text: &str,
    remaining: &mut usize,
) -> Result
Expand description

Writes text with JSON string escapes, and subtracts the bytes that escapes add from remaining.