to_writer

Function to_writer 

Source
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,
Expand description

Serialize value as JSON to a SerWrite implementation.

Serialize bytes as arrays of numbers.