Crate facet_json

Source
Expand description

Facet logo - a reflection library for Rust

Coverage Status free of syn crates.io documentation MIT/Apache-2.0 licensed

Logo by Misiasart

Thanks to all individual and corporate sponsors, without whom this work could not exist:

Ko-fi GitHub Sponsors Patreon Zed Depot

§facet-json

A JSON deserializer based on facet-deserialize

§License

Licensed under either of:

at your option.

Structs§

DeserError
A JSON parse error, with context. Never would’ve guessed huh.
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.