pub fn to_writer<W, T>(writer: W, value: &T) -> Result<()>where W: Write, T: ?Sized + Serialize,
Serializes value into writer.
value
writer
This function does not generate any newlines or nice formatting; if you want that, you can use to_writer_pretty instead.
to_writer_pretty