serialize_json_object

Function serialize_json_object 

Source
pub fn serialize_json_object<'data, Output: StringWrite>(
    output: &mut Output,
    fields: &[JsonField<'data, 'data>],
    resume_from: usize,
) -> Result<usize, (usize, Output::StringWriteFailure)>
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.