Crate humphrey_json

Crate humphrey_json 

Source
Expand description

Humphrey JSON is a library facilitating the serialization and deserialization of JSON data. It is designed for web applications, but can be used in other contexts, and is well-integrated with the Humphrey web server.

Learn more about Humphrey JSON here.

Re-exports§

pub use value::Value;

Modules§

error
Provides error handling functionality.
indexing
Provides functionality for indexing into JSON values.
macros
Provides the json! macro for creating JSON values and the json_map! macro for serializing/deserializing them to and from Rust data structures.
parser
Provides the core JSON-parsing functionality.
prelude
Brings useful traits and macros into scope.
serialize
Provides JSON serialization functionality.
traits
Provides useful traits for working with JSON values.
value
Provides the Value struct for interfacing with JSON values.

Macros§

json
Create a JSON value from JSON-like syntax.
json_map
Specifies a mapping between a Rust data structure and a JSON value.

Functions§

from_str
Deserialize a JSON string into a Rust data structure.
to_string
Serialize a Rust data structure into a JSON string.
to_string_pretty
Serialize a Rust data structure into a JSON string, pretty-printed with indentation.

Derive Macros§

FromJson
Derives the FromJson trait for a type.
IntoJson
Derives the IntoJson trait for a type.