pub fn to_writer<T: ToJson + ?Sized, W: Write>(
value: &T,
writer: &mut W,
) -> Result<(), Error>Expand description
Serialize value directly into a std::io::Write sink.
The standard “stream JSON to a file/socket” entry point. For an
in-memory build use to_string / to_vec.