Module dscfg_server::json
source · Expand description
Reexport for serde_json
This is mainly useful to avoid having to specify another dependency.
It’s also somewhat nicer to write json::Value
instead of serde_json::Value
.
Modules
Deserialize JSON data to a Rust data structure.
When serializing or deserializing JSON goes wrong.
A map of String to serde_json::Value.
Serialize a Rust data structure into JSON data.
The Value enum, a loosely typed way of representing any valid JSON value.
Macros
Construct a
serde_json::Value
from a JSON literal.Structs
A structure that deserializes JSON into Rust values.
This type represents all possible errors that can occur when serializing or
deserializing JSON data.
Represents a JSON key/value type.
Represents a JSON number, whether integer or floating point.
A structure for serializing Rust values into JSON.
Iterator that deserializes a stream into multiple JSON values.
Enums
Represents any valid JSON value.
Functions
Deserialize an instance of type
T
from an IO stream of JSON.Deserialize an instance of type
T
from bytes of JSON text.Deserialize an instance of type
T
from a string of JSON text.Interpret a
serde_json::Value
as an instance of type T
.Serialize the given data structure as a String of JSON.
Serialize the given data structure as a pretty-printed String of JSON.
Convert a
T
into serde_json::Value
which is an enum that can represent
any valid JSON data.Serialize the given data structure as a JSON byte vector.
Serialize the given data structure as a pretty-printed JSON byte vector.
Serialize the given data structure as JSON into the IO stream.
Serialize the given data structure as pretty-printed JSON into the IO
stream.
Type Definitions
Alias for a
Result
with the error type serde_json::Error
.