Crate lil_json

Crate lil_json 

Source

Structs§

JsonField
a field within a JSON object
JsonObject
a JSON Object (rfc8259) that wraps a mutable or immutable buffer of object fields. The easiest way to use it is through the ArrayJsonObject type alias, however you can use JsonObject directly to wrap your own buffer like a heap allocated Vec

Enums§

JsonParseFailure
the various reasons parsing JSON can fail
JsonValue
terminal (non-nested) JSON types

Constants§

EMPTY_FIELD
a default JSON field with static lifetime

Traits§

FieldBuffer
FieldBufferMut
StringWrite

Functions§

parse_json_object
the core function that powers parsing in the JsonObject API. It attempts to parse the fields of a json object from the provided data slice into the provided field buffer, then return (data bytes consumed, parsed field slice) on success.
serialize_json_object
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.

Type Aliases§

ArrayJsonObject
ArrayJsonObject is a type alias for a JsonObject that wraps an array. It is has some additional functionality compared to a normal JsonObject.