pub fn to_writer_indent<W, T>( writer: &mut W, value: &T, compact: bool, indent: usize, ) -> Result<(), EncodeJsonError>where W: Write, T: Serialize + ?Sized,
Serialize the given data structure as JSON into the IO stream.