Module depth

Module depth 

Source
Expand description

JSON depth calculations on byte streams.

Used for iterating over the document while keeping track of depth. This is heavily optimized for skipping irrelevant parts of a JSON document. For example, to quickly skip to the end of the currently opened object one can set the depth to 1 and then advance until it reaches 0.

It also supports stopping and resuming with ResumeClassifierState.

Structs§

DepthIteratorResumeOutcome
The result of resuming a DepthIterator – the first block and the rest of the iterator.

Traits§

DepthBlock
Common trait for structs that enrich a byte block with JSON depth information.
DepthIterator
Trait for depth iterators, i.e. finite iterators returning depth information about JSON documents.