| Package | Description | 
|---|---|
| javax.json | 
 Provides an object model API to process JSON. 
 | 
| javax.json.spi | 
 Service Provider Interface (SPI) to plug in implementations for
 JSON processing objects. 
 | 
| javax.json.stream | 
 Provides a streaming API to parse and generate
 JSON. 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
JsonArray
JsonArray represents an immutable JSON array
 (an ordered sequence of zero or more values). | 
interface  | 
JsonNumber
An immutable JSON number value. 
 | 
interface  | 
JsonObject
JsonObject class represents an immutable JSON object value
 (an unordered collection of zero or more name/value pairs). | 
interface  | 
JsonString
An immutable JSON string value. 
 | 
interface  | 
JsonStructure
 | 
| Modifier and Type | Field and Description | 
|---|---|
static JsonValue | 
JsonValue.FALSE
JSON false value. 
 | 
static JsonValue | 
JsonValue.NULL
JSON null value. 
 | 
static JsonValue | 
JsonValue.TRUE
JSON 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  
JsonMergePatch as JsonValue. | 
| 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/ 
JsonValue pair 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
  
target with the specified value. | 
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 the source, yields the target. | 
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
  
target with the specified value. | 
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  
JsonValue to 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 the source, yields the target. | 
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  
JsonValue at the current parser position. | 
| Modifier and Type | Method and Description | 
|---|---|
default Stream<JsonValue> | 
JsonParser.getArrayStream()
Returns a stream of the  
JsonArray elements. | 
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  
JsonValue from a sequence of
 JSON values. | 
static Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> | 
JsonCollectors.groupingBy(Function<JsonValue,String> classifier)
Constructs a  
java.util.stream.Collector that implements a "group by" operation on the
 input JsonValue elements. | 
static <T extends JsonArrayBuilder> | 
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
          Collector<JsonValue,T,JsonArray> downstream)
Constructs a  
java.util.stream.Collector that implements a "group by" operation on the
 input JsonValue elements. | 
static Collector<JsonValue,JsonArrayBuilder,JsonArray> | 
JsonCollectors.toJsonArray()
Constructs a  
java.util.stream.Collector that accumulates the input JsonValue
 elements into a JsonArray. | 
static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> | 
JsonCollectors.toJsonObject()
Constructs a  
java.util.stream.Collector that accumulates the input Map.Entry<String,JsonValue>
 elements into a JsonObject. | 
static Collector<JsonValue,JsonObjectBuilder,JsonObject> | 
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)
Constructs a  
java.util.stream.Collector that accumulates the input JsonValue
 elements into a JsonObject. | 
| 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.Collector that implements a "group by" operation on the
 input JsonValue elements. | 
static <T extends JsonArrayBuilder> | 
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
          Collector<JsonValue,T,JsonArray> downstream)
Constructs a  
java.util.stream.Collector that implements a "group by" operation on the
 input JsonValue elements. | 
static <T extends JsonArrayBuilder> | 
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
          Collector<JsonValue,T,JsonArray> downstream)
Constructs a  
java.util.stream.Collector that implements a "group by" operation on the
 input JsonValue elements. | 
static Collector<JsonValue,JsonObjectBuilder,JsonObject> | 
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)
Constructs a  
java.util.stream.Collector that accumulates the input JsonValue
 elements into a JsonObject. | 
static Collector<JsonValue,JsonObjectBuilder,JsonObject> | 
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)
Constructs a  
java.util.stream.Collector that accumulates the input JsonValue
 elements into a JsonObject. | 
static Collector<JsonValue,JsonObjectBuilder,JsonObject> | 
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
            Function<JsonValue,JsonValue> valueMapper)
Constructs a  
java.util.stream.Collector that accumulates the input JsonValue
 elements into a JsonObject. | 
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.