to_writer_pretty

Function to_writer_pretty 

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

Serialize the given data structure as pretty-printed JSON into the I/O stream.

Equivalent to serde_json::to_writer_pretty but with errors extended with serde_path_to_error.

See serde_json::to_writer_pretty for more documentation.