serialize_json_object

Function serialize_json_object 

Source
pub fn serialize_json_object<'data, Output: Write>(
    output: 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.