Interface | Description |
---|---|
JsonArray |
JsonArray represents an immutable JSON array
(an ordered sequence of zero or more values). |
JsonArrayBuilder |
A builder for creating
JsonArray models from scratch, and for
modifying a existing JsonArray . |
JsonBuilderFactory |
Factory to create
JsonObjectBuilder and JsonArrayBuilder
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 creating
JsonObject models from scratch. |
JsonReader | |
JsonReaderFactory |
Factory to create
JsonReader instances. |
JsonString |
An immutable JSON string value.
|
JsonStructure | |
JsonValue |
JsonValue represents an immutable JSON value. |
JsonWriter | |
JsonWriterFactory |
Factory to create
JsonWriter instances. |
Class | Description |
---|---|
Json |
Factory class for creating JSON processing objects.
|
JsonMergePatch |
This class is an implementation of a JSON Merge Patch as specified in
RFC 7396.
|
JsonPatch |
This class is an immutable representation of a JSON Patch as specified in
RFC 6902.
|
JsonPatchBuilder |
A builder for constructing a JSON Patch by adding
JSON Patch operations incrementatlly.
|
JsonPointer |
This class is an immutable representation of a JSON Pointer as specified in
RFC 6901.
|
JsonUtil |
A utility class
|
Enum | Description |
---|---|
JsonValue.ValueType |
Indicates the type of a
JsonValue object. |
Exception | Description |
---|---|
JsonException |
JsonException indicates that some exception happened during
JSON processing. |
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.
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : [email protected]