| Package | Description | 
|---|---|
| jakarta.json | Provides an object model API to process JSON. | 
| jakarta.json.spi | Service Provider Interface (SPI) to plug in implementations for
 JSON processing objects. | 
| jakarta.json.stream | Provides a streaming API to parse and generate
 JSON. | 
| Modifier and Type | Field and Description | 
|---|---|
| static JsonObject | JsonValue. EMPTY_JSON_OBJECTThe empty JSON object. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonObject | JsonValue. asJsonObject()Return the JsonValue as a JsonObject | 
| JsonObject | JsonObjectBuilder. build()Returns the JSON object associated with this object builder. | 
| JsonObject | JsonArray. getJsonObject(int index)Returns the object value at the specified position in this array. | 
| JsonObject | JsonObject. getJsonObject(String name)Returns the object value to which the specified name is mapped. | 
| JsonObject | JsonReader. readObject()Returns a JSON object that is represented in
 the input source. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonObjectBuilder | JsonBuilderFactory. createObjectBuilder(JsonObject object)Creates a  JsonObjectBuilderinstance, initialized with an object. | 
| static JsonObjectBuilder | Json. createObjectBuilder(JsonObject object)Creates a JSON object builder, initialized with the specified object. | 
| void | JsonWriter. writeObject(JsonObject object)Writes the specified JSON  objectto the output
 source. | 
| Modifier and Type | Method and Description | 
|---|---|
| JsonObjectBuilder | JsonProvider. createObjectBuilder(JsonObject object)Creates a JSON object builder, initialized with the specified object. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonObject | JsonParser. getObject()Returns a  JsonObjectand advances the parser to the
 correspondingEND_OBJECT. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> | JsonCollectors. groupingBy(Function<JsonValue,String> classifier)Constructs a  java.util.stream.Collectorthat implements a "group by" operation on the
 inputJsonValueelements. | 
| static <T extends JsonArrayBuilder> | JsonCollectors. groupingBy(Function<JsonValue,String> classifier,
          Collector<JsonValue,T,JsonArray> downstream)Constructs a  java.util.stream.Collectorthat implements a "group by" operation on the
 inputJsonValueelements. | 
| static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> | JsonCollectors. toJsonObject()Constructs a  java.util.stream.Collectorthat accumulates the inputMap.Entry<String,JsonValue>elements into aJsonObject. | 
| static Collector<JsonValue,JsonObjectBuilder,JsonObject> | JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)Constructs a  java.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonObject. | 
| Modifier and Type | Method and Description | 
|---|---|
| JsonParser | JsonParserFactory. createParser(JsonObject obj)Creates a JSON parser from the specified JSON object. | 
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.