Crate facet_json

Crate facet_json 

Source
Expand description

JSON parser and serializer using facet-format.

This crate provides JSON support via the FormatParser trait.

Structs§

JsonError
Error type for JSON deserialization.
JsonParser
Streaming JSON parser backed by facet-json’s SliceAdapter.
JsonSerializeError
JsonSerializer
JSON serializer with configurable formatting options.
RawJson
A raw JSON value that has not been parsed.
SerializeOptions
Options for JSON serialization.

Enums§

DeserializeError
Error produced by FormatDeserializer.

Functions§

from_slice
Deserialize a value from JSON bytes into an owned type.
from_slice_borrowed
Deserialize a value from JSON bytes, allowing zero-copy borrowing.
from_str
Deserialize a value from a JSON string into an owned type.
from_str_borrowed
Deserialize a value from a JSON string, allowing zero-copy borrowing.
peek_to_string
Serialize a Peek instance to a JSON string.
peek_to_string_pretty
Serialize a Peek instance to a pretty-printed JSON string.
peek_to_string_with_options
Serialize a Peek instance to a JSON string with custom options.
peek_to_writer_std
Serialize a Peek instance to JSON and write it to a std::io::Write writer.
peek_to_writer_std_pretty
Serialize a Peek instance to pretty-printed JSON and write it to a std::io::Write writer.
peek_to_writer_std_with_options
Serialize a Peek instance to JSON with custom options and write it to a std::io::Write writer.
to_string
Serialize a value to a JSON string.
to_string_pretty
Serialize a value to a pretty-printed JSON string.
to_string_with_options
Serialize a value to a JSON string with custom options.
to_vec
Serialize a value to JSON bytes.
to_vec_pretty
Serialize a value to pretty-printed JSON bytes.
to_vec_with_options
Serialize a value to JSON bytes with custom options.
to_writer_std
Serialize a value to JSON and write it to a std::io::Write writer.
to_writer_std_pretty
Serialize a value to pretty-printed JSON and write it to a std::io::Write writer.
to_writer_std_with_options
Serialize a value to JSON with custom options and write it to a std::io::Write writer.