Function beautician::prettify
[−]
[src]
pub fn prettify(src: &mut Read, dest: &mut Write) -> Result<(), BuilderError>
Prettifies the JSON content from the reader into the writer.
Examples
let mut reader: &[u8] = b"[\"hello\"]"; let mut writer: Vec<u8> = vec![]; try!(beautician::prettify(&mut reader, &mut writer)); assert_eq!(b"[\n \"hello\"\n]", &writer[..]);