Available on crate feature
json only.Expand description
A module to provide functions for JSON <-> Rust serialize and deserialize.
Functionsยง
- from_
reader - Deserialize an instance of
Syntype from an I/O stream of JSON. - from_
slice - Deserialize an instance of
Syntype from bytes of JSON text. - from_
str - Deserialize an instance of
Syntype from a string of JSON text. - to_
string - Serialize the given
Syntype as a String of JSON. - to_
string_ pretty - Serialize the given
Syntype as a pretty-printed String of JSON. - to_vec
- Serialize the given
Syntype as a JSON byte vector. - to_
vec_ pretty - Serialize the given
Syntype as a pretty-printed JSON byte vector. - to_
writer - Serialize the given
Syntype as JSON into the I/O stream. - to_
writer_ pretty - Serialize the given
Syntype as pretty-printed JSON into the IO stream.