pub fn to_json_writer_pretty<T, W>(value: &T, writer: W) -> Result<()>where
    T: ?Sized + Serialize,
    W: Write,
Expand description

Converts the value to a pretty printed JSON string and writes it to the writer.