pub fn to_writer<W, T>(writer: W, value: &T) -> Result<()>where W: Write, T: ?Sized + Serialize,
Attempts to serialize the input as JSON5 string into the I/O stream.