pub fn to_writer<W, T>(writer: W, value: &T) -> Result<(), W::Error>where W: SerWrite, <W as SerWrite>::Error: Display + Debug, T: Serialize + ?Sized,
Serialize value as JSON to a SerWrite implementation.
value
SerWrite
Serialize bytes as arrays of numbers.