nu_json::ser

Function escape_key

Source
pub fn escape_key<W>(wr: &mut W, value: &str) -> Result<()>
where W: Write,
Expand description

Serializes and escapes a &str into a Hjson key.