Skip to main content

escape_json_string

Function escape_json_string 

Source
pub const fn escape_json_string(input: &str, output: &mut [u8]) -> usize
Available on crate feature experimental-inspect only.
Expand description

Escapes a string to be valid JSON. Does not add quotes around it

Returns the number of written bytes

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here