-
Interface Summary Interface Description JsonArray JsonArray
represents an immutable JSON array (an ordered sequence of zero or more values).JsonArrayBuilder A builder for creatingJsonArray
models from scratch.JsonBuilderFactory Factory to createJsonObjectBuilder
andJsonArrayBuilder
instances.JsonNumber An immutable JSON number value.JsonObject JsonObject
class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).JsonObjectBuilder A builder for creatingJsonObject
models from scratch.JsonReader JsonReaderFactory Factory to createJsonReader
instances.JsonString An immutable JSON string value.JsonStructure JsonValue JsonValue
represents an immutable JSON value.JsonWriter JsonWriterFactory Factory to createJsonWriter
instances. -
Class Summary Class Description Json Factory class for creating JSON processing objects. -
Enum Summary Enum Description JsonValue.ValueType Indicates the type of aJsonValue
object. -
Exception Summary Exception Description JsonException JsonException
indicates that some exception happened during JSON processing.
Package javax.json Description
The object model API is a high-level API that provides immutable object
models for JSON object and array structures. These JSON structures are
represented as object models using the Java types JsonObject
and JsonArray
. The interface javax.json.JsonObject
provides
a Map
view to access the unordered collection of zero or
more name/value pairs from the model. Similarly, the interface
JsonArray
provides a List
view to access the
ordered sequence of zero or more values from the model.
The object model API uses builder patterns to create these object models.
The classes JsonObjectBuilder
and
JsonArrayBuilder
provide methods to create models
of type JsonObject
and JsonArray
respectively.
These object models can also be created from an input source using
the class JsonReader
. Similarly, these object models
can be written to an output source using the class JsonWriter
.
- 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/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.