pub fn format(buf: &[u8]) -> Result<String>
Format compact bytes as pretty form, two-space indent, compact mode.