pub fn to_writer<T: Facet, W: Write>(value: &T, writer: &mut W) -> Result<()>
Serializes a value to a writer in JSON format