Module json

Module json 

Source
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 Syn type from an I/O stream of JSON.
from_slice
Deserialize an instance of Syn type from bytes of JSON text.
from_str
Deserialize an instance of Syn type from a string of JSON text.
to_string
Serialize the given Syn type as a String of JSON.
to_string_pretty
Serialize the given Syn type as a pretty-printed String of JSON.
to_vec
Serialize the given Syn type as a JSON byte vector.
to_vec_pretty
Serialize the given Syn type as a pretty-printed JSON byte vector.
to_writer
Serialize the given Syn type as JSON into the I/O stream.
to_writer_pretty
Serialize the given Syn type as pretty-printed JSON into the IO stream.