-
Interface Summary Interface Description JsonGenerator Writes JSON data to an output source in a streaming way.JsonGeneratorFactory Factory to createJsonGenerator
instances.JsonLocation Provides the location information of a JSON event in an input source.JsonParser Provides forward, read-only access to JSON data in a streaming way.JsonParserFactory Factory for creatingJsonParser
instances. -
Enum Summary Enum Description JsonParser.Event An event fromJsonParser
. -
Exception Summary Exception Description JsonGenerationException JsonGenerationException
indicates an incorrect JSON is being generated.JsonParsingException JsonParsingException
is used when an incorrect JSON is being parsed.
Package javax.json.stream Description
The streaming API consists of the interfaces
JsonParser
and
JsonGenerator
. The interface JsonParser
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
arrays.
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.
- Since:
- JSON Processing 1.0
- Author:
- Jitendra Kotamraju
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/json/stream/package-summary.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.