[go: up one dir, main page]

Module sonic_rs::value

source ·

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 Value and LazyValue. The Option<V: JsonValueTrait> and Result<V: JsonValueTrait, E> also implement this trait. The Option::None or Result::Err(_) will be viewed as a null value.

Functions

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