Skip to main content

Module transform

Module transform 

Available on crate feature std only.
Expand description

Streaming JSON transformation with zero-copy pass-through.

A JsonTransform sees every token together with its TokenOrigin and writes what it keeps into a JsonOutput. When the input arrives as Bytes (see JsonTransformer::write_bytes), forwarded tokens become slices of that input, so a transform that keeps most of a document only copies what it changes.

Structs§

JsonOutput
Output of a JsonTransform, gathered as Bytes chunks.
JsonTransformer
Drives a JsonTransform over a streamed JSON document.

Traits§

JsonTransform
Transforms a JSON token stream into output bytes.