nu_json::ser

Function escape_bytes

Source
pub fn escape_bytes<W>(wr: &mut W, bytes: &[u8]) -> Result<()>
where W: Write,
Expand description

Serializes and escapes a &[u8] into a Hjson string.