[go: up one dir, main page]

Module value

Source
Expand description

A dynamic type to representing any valid JSON value.

Modules§

array
Represents a parsed JSON array. Its APIs are likes Vec<Value>.
get
object
Represents a parsed JSON object.

Structs§

Array
Array represents a JSON array. Its APIs are likes Array<Value>.
Object
Represents the JSON object. The inner implement is a key-value array. Its order is as same as origin JSON.
Value
Represents any valid JSON value.

Enums§

JsonType
JsonType is an enum that represents the type of a JSON value.
ValueRef
ValueRef is a immutable reference helper for Value.

Traits§

JsonContainerTrait
A trait for all JSON object or array values. Used by Value.
JsonValueMutTrait
A trait for all mutable JSON values. Used by mutable Value.
JsonValueTrait
A trait for all JSON values. Used by Value and LazyValue.

Functions§

from_value
Interpret a sonic_rs::Value as an instance of type T.
to_value
Convert a T into sonic_rs::Value which can represent any valid JSON data.