Skip to main content

Crate blazingly_json

Crate blazingly_json 

Source
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§

value

Macros§

json
Constructs a Value with JSON-like syntax.

Structs§

CanonicalBytesScanner
A zero-allocation expected-layout recognizer over raw bytes.
CanonicalScanner
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.
JsonCursor
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§

ErrorCategory
Machine-readable class of a parse or encode failure.

Traits§

JsonObject
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 Value without 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 buf and 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.