pub fn write_line<W, T>(w: &mut W, value: &T) -> Result<(), Error>Expand description
Serialize value as compact JSON plus a trailing \n. Errors if the
encoded form contains a newline (it cannot for valid compact JSON, but we
assert the invariant the transport relies on).