Skip to main content

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§

DeserializeError
Error produced by the format deserializer.
HexBytesOptions
Options for hex byte serialization.
JsonError
Error type for JSON deserialization.
JsonParser
JSON parser using Scanner directly (no adapter layer).
JsonSerializeError
JsonSerializer
JSON serializer with configurable formatting options.
RawJson
A raw JSON value that has not been parsed.
SerializeOptions
Options for JSON serialization.

Enums§

BytesFormat
Byte serialization format for JSON.

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_slice_into
Deserialize JSON from bytes into an existing Partial.
from_slice_into_borrowed
Deserialize JSON from bytes into an existing Partial, 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.
from_str_into
Deserialize JSON from a string into an existing Partial.
from_str_into_borrowed
Deserialize JSON from a string into an existing Partial, 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.