Modules
Structs
- Array represents a JSON array. Its APIs are likes
Array<Value>. - Represents the JSON object. The inner implement is a key-value array. Its order is as same as origin JSON.
- Represents any valid JSON value.
Enums
- JsonType is an enum that represents the type of a JSON value.
- ValueRef is a immutable reference helper for
Value.
Traits
- A trait for all JSON object or array values. Used by
Value. - A trait for all mutable JSON values. Used by mutable
Value. - A trait for all JSON values. Used by
ValueandLazyValue. TheOption<V: JsonValueTrait>andResult<V: JsonValueTrait, E>also implement this trait. TheOption::NoneorResult::Err(_)will be viewed as a null value.
Functions
- Interpret a
sonic_rs::Valueas an instance of typeT. - Convert a
Tintosonic_rs::Valuewhich can represent any valid JSON data.