Expand description
§Json Helper Functions
- documentation: docs.rs/json-value
§Methods
Function | Description |
---|---|
get_key_T | Get a reference to the specified key, or a reference if successful |
mut_key_T | Get mutable reference to the specified key, or a mutable reference if successful |
extract_T | Extract the specified field, if successful, the field will disappear |
is_T | Check if the object is the specified type |
as_T | Get a reference of the specified type, if successful, get a reference |
into_T | Convert to the specified type, if the failure data will disappear |
Structs§
- Error
- This type represents all possible errors that can occur when serializing or deserializing JSON data.
- Number
- Represents a JSON number, whether integer or floating point.
Traits§
- Json
Maybe Array - Treat json value as array and get data from it according to index
- Json
Maybe Object - Treat json value as object and get data from it according to key
- Json
Value Check - Check the type of json value
- Json
Value Wrap - Attempt to convert json value to specified type
Functions§
- to_
string_ pretty - Serialize a [
JsonValue
] into aString
with pretty formatting.
Type Aliases§
- Json
Object - Represents any valid JSON object.
- Json
Value - Represents any valid JSON value.