Crate facet_json

Source
Expand description

§facet-json

Coverage Status crates.io documentation MIT/Apache-2.0 licensed Discord

§facet-json

A JSON deserializer based on facet-deserialize

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§Special thanks

The facet logo was drawn by Misiasart.

§License

Licensed under either of:

at your option.

Structs§

DeserError
A deserialization error, associated with a specific input and location.
DeserErrorMessage
A wrapper type for displaying deser error messages
JsonSerializer
A serializer for JSON format that implements the facet_serialize::Serializer trait.

Enums§

DeserErrorKind
An error kind for JSON parsing.
SerializeError
Serialization error for json, which cannot fail.

Traits§

JsonWrite
no_std compatible Write trait used by the json serializer.

Functions§

from_slice
Deserialize JSON from a given byte slice
from_str
Deserialize JSON from a UTF-8 string slice
peek_to_string
Serializes a Peek instance to a JSON string.
peek_to_writer
Serializes a Peek value to JSON and writes it to the given writer.
to_string
Serializes a value implementing Facet to a JSON string.
to_writer
Serializes a Facet value to JSON and writes it to the given writer.