pub fn serialize_json_object<'data, Output: Write>(
output: &mut Output,
fields: &[JsonField<'data, 'data>],
) -> Result<usize, Output::Error>Expand description
the core function that powers serialization in the JsonObject API. It attempts to serialize the provided fields as a JSON object into the provided output, & returns the number of bytes written on success.