Expand description
Serde between JSON text and Rust data structure.
Structs§
- Deserializer
- A structure that deserializes JSON into Rust values.
- Number
- Represents a JSON number, whether integer or floating point.
- RawNumber
- Represents a JSON number with arbitrary precision, the underlying representation of a string,
like as Golang
json.Number. - Serializer
- A structure for serializing Rust values into JSON.
- Stream
Deserializer - An iterator that deserializes a json stream into multiple
Tvalues.
Traits§
- Json
Number Trait - Number trait for both
NumberandRawNumber.
Functions§
- from_
reader - Deserialize an instance of type
Tfrom a Reader - from_
slice - Deserialize an instance of type
Tfrom bytes of JSON text. If user can guarantee the JSON is valid UTF-8, recommend to usefrom_slice_uncheckedinstead. - from_
slice_ ⚠unchecked - Deserialize an instance of type
Tfrom bytes of JSON text. - from_
str - Deserialize an instance of type
Tfrom a string of JSON text. - to_
lazyvalue - Serialize the given data structure as a OwnedLazyValue of JSON.
- 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_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.
- to_
writer - Serialize the given data structure as JSON into the I/O stream.
- to_
writer_ pretty - Serialize the given data structure as pretty-printed JSON into the I/O stream.