The streaming API consists of the interfaces
JsonGenerator. The interface
contains methods to parse JSON in a streaming way. The interface
JsonGenerator contains methods to write JSON to an output source
in a streaming way.
JsonParser provides forward, read-only access to JSON data using the
pull parsing programming model. In this model the application code controls
the thread and calls methods in the parser interface to move the parser
forward or to obtain JSON data from the current state of the parser.
JsonGenerator provides methods to write JSON to an output source.
The generator writes name/value pairs in JSON objects and values in JSON
The streaming API is a low-level API designed to process large amounts of JSON data efficiently. Other JSON frameworks (such as JSON binding) can be implemented using this API.
- JSON Processing 1.0
Interface Summary Interface Description JsonGeneratorWrites JSON data to an output source in a streaming way. JsonGeneratorFactoryFactory to create
JsonLocationProvides the location information of a JSON event in an input source. JsonParserProvides forward, read-only access to JSON data in a streaming way. JsonParserFactoryFactory for creating
Class Summary Class Description JsonCollectors
Enum Summary Enum Description JsonParser.EventAn event from
Exception Summary Exception Description JsonGenerationException
JsonGenerationExceptionindicates an incorrect JSON is being generated.
JsonParsingExceptionis used when an incorrect JSON is being parsed.