Expand description
Focused JSON parsing and encoding for Blazingly protocol workloads.
Re-exports§
pub use value::from_value;pub use value::Value;pub use value::ValueIndex;
Modules§
Macros§
Structs§
- Canonical
Bytes Scanner - A zero-allocation expected-layout recognizer over raw bytes.
- Canonical
Scanner - A zero-allocation recognizer for one expected compact JSON layout.
- Deserializer
- A zero-copy Serde deserializer over a UTF-8 JSON slice.
- Error
- Error returned while parsing or encoding JSON.
- Field
- One object member. The value must be consumed with one of this type’s methods before requesting the next field or finishing the object.
- Json
Cursor - A low-level, allocation-free cursor for routing selected object fields.
- Limits
- Resource limits applied by every parser entry point.
- Map
- Ordered object storage used by
crate::Value. - Number
- A finite JSON number represented without losing signed or unsigned integers.
- Object
- Streaming view over one JSON object visited by
JsonCursor::object. - RawJson
- A validated JSON value borrowed directly from the input buffer.
- RawValue
- A reference to one complete, validated JSON value.
- Serializer
- Streaming JSON serializer.
Enums§
- Error
Category - Machine-readable class of a parse or encode failure.
Traits§
- Json
Object - Schema-driven encode/decode surface generated by
blazingly-json-derive.
Functions§
- append_
to_ vec - Appends compact JSON to
buf. - duplicate_
field - expected_
borrowed_ string - from_
slice - Deserializes one complete JSON value from a byte slice.
- from_
slice_ with - Deserializes one complete JSON value from a byte slice with explicit limits.
- from_
str - Deserializes one complete JSON value from a string.
- from_
str_ with - Deserializes one complete JSON value from a string with explicit limits.
- limit_
capacity - Caps the retained allocation of a reusable output buffer.
- missing_
field - to_
raw_ value - Serializes a value once and retains the resulting JSON verbatim.
- to_
string - Serializes a value into a compact UTF-8 string.
- to_
string_ pretty - Serializes a value into a pretty-printed UTF-8 string.
- to_
value - Serializes directly into an owned
Valuewithout an intermediate string. - to_vec
- Serializes a value into a compact byte vector.
- to_
vec_ pretty - Serializes a value into a pretty-printed byte vector.
- to_
vec_ reuse - Clears
bufand writes compact JSON into it. - to_
writer - Serializes a value into an output writer.
- unknown_
field
Type Aliases§
- Result
- Result alias used by this crate.