Crate core_json_traits

Crate core_json_traits 

Source
Expand description

§core-json Traits

Traits for working with objects which may be deserialized from JSON.

Internally, this uses the core-json crate. That crate focuses on being minimal, only offering a dynamically-typed view as JSON-serialized data is processed. This crate additionally adds traits for deserializing into typed objects, with an optional alloc feature in order to provide implementations over Vec.

For automatic derivation of JsonDeserialize, please see core-json-derive.

Structs§

ArrayIterator
An iterator over an array.
ConstStack
A non-allocating Stack.
Deserializer
A deserializer for a JSON-encoded structure.
FieldIterator
An iterator over fields.
Value
A JSON value.

Enums§

JsonError
An error incurred when deserializing.
State
An item within the stack, representing the state during deserialization.

Traits§

BytesLike
An item which is like a &[u8].
JsonDeserialize
An item which can be deserialized from a Value.
JsonStructure
A structure which can deserialized from a JSON serialization.
Stack
A trait representing a stack.

Functions§

as_bool
Interpret the immediate value within the bytes as a bool.
is_null
Check if the immediate value within the bytes is null.