Function write

Source
pub fn write<W: Write, T: Serialize>(writer: W, t: &T) -> Result<(), WriteError>
Expand description

Writes a given value to the writer, serializing it into JSON.