Skip to main content

json_escape

Function json_escape 

Source
pub fn json_escape(input: &str) -> String
Expand description

Escapes a string for use inside a JSON string literal.

The returned text does not include the surrounding quote characters.