Expand description
JSON parser and serializer using facet-format.
This crate provides JSON support via the FormatParser trait.
Structs§
- Json
Error - Error type for JSON deserialization.
- Json
Parser - Streaming JSON parser backed by
facet-json’sSliceAdapter. - Json
Serialize Error - Json
Serializer - JSON serializer with configurable formatting options.
- RawJson
- A raw JSON value that has not been parsed.
- Serialize
Options - Options for JSON serialization.
Enums§
- Deserialize
Error - 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
Peekinstance to a JSON string. - peek_
to_ string_ pretty - Serialize a
Peekinstance to a pretty-printed JSON string. - peek_
to_ string_ with_ options - Serialize a
Peekinstance to a JSON string with custom options. - peek_
to_ writer_ std - Serialize a
Peekinstance to JSON and write it to astd::io::Writewriter. - peek_
to_ writer_ std_ pretty - Serialize a
Peekinstance to pretty-printed JSON and write it to astd::io::Writewriter. - peek_
to_ writer_ std_ with_ options - Serialize a
Peekinstance to JSON with custom options and write it to astd::io::Writewriter. - 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::Writewriter. - to_
writer_ std_ pretty - Serialize a value to pretty-printed JSON and write it to a
std::io::Writewriter. - to_
writer_ std_ with_ options - Serialize a value to JSON with custom options and write it to a
std::io::Writewriter.