Package javax.json
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 and modify
these object models. The classes JsonObjectBuilder
and
JsonArrayBuilder
provide methods to create and modify 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
.
This package includes several classes that implement other JSON related standards: JSON Pointer, JSON Patch, and JSON Merge Patch. They can be used to retrieve, transform or manipulate values in an object model.
-
Interface Summary Java Entity Description JsonArray JsonArray
represents an immutable JSON array (an ordered sequence of zero or more values)JsonArrayBuilder A builder for creatingJsonArray
models from scratch, and for modifying a existingJsonArray
JsonBuilderFactory Factory to createJsonObjectBuilder
andJsonArrayBuilder
instancesJsonMergePatch This interface represents an implementation of a JSON Merge Patch as defined by RFC 7396JsonNumber An immutable JSON number valueJsonObject 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 scratchJsonPatch This interface represents an immutable implementation of a JSON Patch as defined by RFC 6902JsonPatchBuilder A builder for constructing a JSON Patch as defined by RFC 6902 by adding JSON Patch operations incrementallyJsonPointer This interface represents an immutable implementation of a JSON Pointer as defined by RFC 6901JsonReader JsonReaderFactory Factory to createJsonReader
instancesJsonString An immutable JSON string valueJsonStructure JsonValue JsonValue
represents an immutable JSON valueJsonWriter JsonWriterFactory Factory to createJsonWriter
instancesClass Summary Java Entity Description Json Factory class for creating JSON processing objectsEnum Summary Java Entity Description JsonPatch.Operation This enum represents the list of valid JSON Patch operations as defined by RFC 6902JsonValue.ValueType Indicates the type of aJsonValue
objectException Summary Java Entity Description JsonException JsonException
indicates that some exception happened during JSON processing