to_writer

Function to_writer 

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

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

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

See serde_json::to_writer for more documentation.