This category of APIs generates an in-memory tree model for JSON data and then starts processing it as instructed by the client. This is conceptually similar to the Document Object Model (DOM) API for XML.
Here is a list of the frequently used classes in the object model API of the JSR 353 specification:
Class or interface |
Description |
javax.json.Json |
This class is the main factory class for creating JSON processing objects, such as JsonReader and JsonWriter. |
javax.json.JsonReader |
This interface reads the JSON content and generates a JSON object or array as appropriate. |
javax.json.JsonWriter |
This interface writes a JSON object or array to an output source. |
javax.json.JsonObjectBuilder |
This interface offers APIs for generating the JsonObject models from scratch. |
javax.json.JsonArrayBuilder |
This interface offers APIs for generating JsonArray models from scratch. |
javax.json.JsonValue |
This interface is the superinterface representing an immutable JSON value. The JSON value takes one of the following forms:
|
The JSR 353 object model APIs are easy to use and rich in offerings.