Module rsonpath::classification
source · Expand description
Classifiers working on the input stream.
quotes
contains the low-levelQuoteClassifiedIterator
computing basic information on which characters are escaped or within quotes.structural
contains theStructuralIterator
that wraps over a quote classifier to extract a stream ofStructural
characters.depth
contains theDepthIterator
that works on top of a quote classifier to provide quick fast-forwarding over the stream while keeping track of the depth.
This base module provides the ResumeClassifierState
struct common between all
higher-level classifiers that work on top of a QuoteClassifiedIterator
.
It allows saving the state of a classifier and can be later used to resume classification
from a, possibly different, high-level classifier. This state’s index can be pushed
forward.
Modules§
- JSON depth calculations on byte streams.
- Classification ignoring the structure of the JSON and looking for the occurrence of a specific member name as quickly as possible.
- Classification of bytes withing JSON quote sequences.
- Classification of structurally significant JSON bytes.
Structs§
- State of the block at which classification was stopped.
- State allowing resumption of a classifier from a particular place in the input along with the stopped
QuoteClassifiedIterator
.