| 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 | Interface and Description | 
|---|---|
| interface  | JsonArrayJsonArrayrepresents an immutable JSON array
 (an ordered sequence of zero or more values). | 
| interface  | JsonNumberAn immutable JSON number value. | 
| interface  | JsonObjectJsonObjectclass represents an immutable JSON object value
 (an unordered collection of zero or more name/value pairs). | 
| interface  | JsonStringAn immutable JSON string value. | 
| interface  | JsonStructure | 
| Modifier and Type | Field and Description | 
|---|---|
| static JsonValue | JsonValue. FALSEJSON false value. | 
| static JsonValue | JsonValue. NULLJSON null value. | 
| static JsonValue | JsonValue. TRUEJSON true value. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends JsonValue> | JsonArray. getValuesAs(Class<T> clazz)Returns a list view of the specified type for the array. | 
| default <T,K extends JsonValue> | JsonArray. getValuesAs(Function<K,T> func)Returns a list view for the array. | 
| Modifier and Type | Method and Description | 
|---|---|
| JsonValue | JsonMergePatch. apply(JsonValue target)Applies the JSON Merge Patch to the specified  target. | 
| JsonValue | JsonPointer. getValue(JsonStructure target)Returns the value at the referenced location in the specified  target. | 
| default JsonValue | JsonStructure. getValue(String jsonPointer)Get the value referenced by the provided JSON Pointer in the JsonStructure. | 
| default JsonValue | JsonReader. readValue()Returns a JSON value that is represented in
 the input source. | 
| JsonValue | JsonMergePatch. toJsonValue()Returns the  JsonMergePatchasJsonValue. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonArrayBuilder | JsonArrayBuilder. add(int index,
   JsonValue value)Inserts a value to the array at the specified position. | 
| JsonArrayBuilder | JsonArrayBuilder. add(JsonValue value)Adds a value to the array. | 
| JsonPatchBuilder | JsonPatchBuilder. add(String path,
   JsonValue value)Adds an "add" JSON Patch operation. | 
| JsonObjectBuilder | JsonObjectBuilder. add(String name,
   JsonValue value)Adds a name/ JsonValuepair to the JSON object associated with
 this object builder. | 
| <T extends JsonStructure> | JsonPointer. add(T target,
   JsonValue value)Adds or replaces a value at the referenced location in the specified
  targetwith the specifiedvalue. | 
| JsonValue | JsonMergePatch. apply(JsonValue target)Applies the JSON Merge Patch to the specified  target. | 
| static JsonMergePatch | Json. createMergeDiff(JsonValue source,
               JsonValue target)Generates a JSON Merge Patch (RFC 7396)
 from the source and target  JsonValues
 which when applied to thesource, yields thetarget. | 
| static JsonMergePatch | Json. createMergePatch(JsonValue patch)Creates JSON Merge Patch (RFC 7396)
 from specified  JsonValue. | 
| JsonPatchBuilder | JsonPatchBuilder. replace(String path,
       JsonValue value)Adds a "replace" JSON Patch operation. | 
| <T extends JsonStructure> | JsonPointer. replace(T target,
       JsonValue value)Replaces the value at the referenced location in the specified
  targetwith the specifiedvalue. | 
| default JsonArrayBuilder | JsonArrayBuilder. set(int index,
   JsonValue value)Replaces a value in the array with the specified value at the
 specified position. | 
| JsonPatchBuilder | JsonPatchBuilder. test(String path,
    JsonValue value)Adds a "test" JSON Patch operation. | 
| default void | JsonWriter. write(JsonValue value)Writes the specified  JsonValueto the output source. | 
| Modifier and Type | Method and Description | 
|---|---|
| JsonMergePatch | JsonProvider. createMergeDiff(JsonValue source,
               JsonValue target)Generates a JSON Merge Patch (RFC 7396)
 from the source and target  JsonValues
 which when applied to thesource, yields thetarget. | 
| JsonMergePatch | JsonProvider. createMergePatch(JsonValue patch)Creates JSON Merge Patch (RFC 7396)
 from specified  JsonValue. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonValue | JsonParser. getValue()Returns a  JsonValueat the current parser position. | 
| Modifier and Type | Method and Description | 
|---|---|
| default Stream<JsonValue> | JsonParser. getArrayStream()Returns a stream of the  JsonArrayelements. | 
| default Stream<Map.Entry<String,JsonValue>> | JsonParser. getObjectStream()Returns a stream of the  JsonObject's
 name/value pairs. | 
| default Stream<JsonValue> | JsonParser. getValueStream()Returns a stream of  JsonValuefrom a sequence of
 JSON values. | 
| 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<JsonValue,JsonArrayBuilder,JsonArray> | JsonCollectors. toJsonArray()Constructs a  java.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonArray. | 
| 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 | 
|---|---|
| JsonGenerator | JsonGenerator. write(JsonValue value)Writes the specified value as a JSON value within
 the current array, field or root context. | 
| JsonGenerator | JsonGenerator. write(String name,
     JsonValue value)Writes a JSON name/value pair in the current object context. | 
| 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 <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<JsonValue,JsonObjectBuilder,JsonObject> | JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)Constructs a  java.util.stream.Collectorthat accumulates the inputJsonValueelements 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. | 
| 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. | 
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.