Expand description
This module exports different types for JSON interactions. It encapsulates the differences between serde_json and simd-json to allow ignoring those in the rest of the codebase.
Macros§
- json
- Construct a
serde_json::Value
from a JSON literal.
Structs§
- Json
Error - This type represents all possible errors that can occur when serializing or deserializing JSON data.
Constants§
Functions§
- from_
reader - Deserialize an instance of type
T
from bytes of JSON text. - from_
slice - Deserialize an instance of type
T
from bytes of JSON text. - from_
str - Deserialize an instance of type
T
from a string of JSON text. - from_
value - Interpret a
Value
as an instance of typeT
. - hashmap_
to_ json_ map - Converts a HashMap into a final
JsonMap
representation. - to_
string - Serialize the given data structure as a String of JSON.
- to_
string_ pretty - Serialize the given data structure as a pretty-printed String of JSON.
- to_
value - Convert a
T
into aValue
which is an enum that can represent any valid JSON data. - to_vec
- Serialize the given data structure as a JSON byte vector.
- to_
vec_ pretty - Serialize the given data structure as a pretty-printed JSON byte vector.