nu_json::ser

Function quote_str

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

Serializes and escapes a &str into a Hjson string.