| Package | Description |
|---|---|
| javax.json | |
| javax.json.spi | |
| javax.json.stream |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JsonArray
A JsonArray e.g.
|
interface |
JsonNumber
JsonValue which represents a number.
|
interface |
JsonObject
A JsonObject, e.g.
|
interface |
JsonString
JsonValue which represents a string.
|
interface |
JsonStructure
A complex type as JsonValue.
|
| Modifier and Type | Field and Description |
|---|---|
static JsonValue |
JsonValue.FALSE
A constant JsonValue for FALSE
|
static JsonValue |
JsonValue.NULL
A constant JsonValue for null values
|
static JsonValue |
JsonValue.TRUE
A constant JsonValue for TRUE
|
| Modifier and Type | Method and Description |
|---|---|
<T extends JsonValue> |
JsonArray.getValuesAs(Class<T> clazz) |
default <T,K extends JsonValue> |
JsonArray.getValuesAs(Function<K,T> func)
Returns a list for the array.
|
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
JsonMergePatch.apply(JsonValue valueToApplyPatchOn)
Applies the current JsonMergePatch to the given value
|
JsonValue |
JsonPointer.getValue(JsonStructure target)
Get the JsonValue at the position referenced by this JsonPointer.
|
default JsonValue |
JsonStructure.getValue(String jsonPointer) |
default JsonValue |
JsonReader.readValue() |
JsonValue |
JsonMergePatch.toJsonValue() |
| Modifier and Type | Method and Description |
|---|---|
default JsonArrayBuilder |
JsonArrayBuilder.add(int index,
JsonValue value) |
JsonArrayBuilder |
JsonArrayBuilder.add(JsonValue value) |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value)
Add the given JsonValue value to the JsonObject to be created.
|
JsonPatchBuilder |
JsonPatchBuilder.add(String path,
JsonValue value)
Adds an 'add'-operation to the
JsonPatch |
<T extends JsonStructure> |
JsonPointer.add(T target,
JsonValue newValue)
Add or replace the value at the position referenced by this JsonPointer with
the new value
|
JsonValue |
JsonMergePatch.apply(JsonValue valueToApplyPatchOn)
Applies the current JsonMergePatch to the given value
|
static JsonMergePatch |
Json.createMergeDiff(JsonValue source,
JsonValue target)
Create a JSON Merge Patch (RFC 7396)
from the source and target
JsonValues. |
static JsonMergePatch |
Json.createMergePatch(JsonValue patch)
|
JsonPatchBuilder |
JsonPatchBuilder.replace(String path,
JsonValue value)
Adds a 'replace'-operation to the
JsonPatch |
<T extends JsonStructure> |
JsonPointer.replace(T target,
JsonValue newValue)
Replace the value at the position referenced by this JsonPointer with
the newValue.
|
default JsonArrayBuilder |
JsonArrayBuilder.set(int index,
JsonValue value) |
JsonPatchBuilder |
JsonPatchBuilder.test(String path,
JsonValue value)
Adds a 'test'-operation to the
JsonPointer |
default void |
JsonWriter.write(JsonValue value) |
| Modifier and Type | Method and Description |
|---|---|
JsonMergePatch |
JsonProvider.createMergeDiff(JsonValue source,
JsonValue target)
Create a merge patch by comparing the source to the target.
|
JsonMergePatch |
JsonProvider.createMergePatch(JsonValue patch)
Create a merge patch based on the given JsonValue.
|
| Modifier and Type | Method and Description |
|---|---|
default JsonValue |
JsonParser.getValue() |
| Modifier and Type | Method and Description |
|---|---|
default Stream<JsonValue> |
JsonParser.getArrayStream() |
default Stream<Map.Entry<String,JsonValue>> |
JsonParser.getObjectStream() |
default Stream<JsonValue> |
JsonParser.getValueStream() |
static Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(Function<JsonValue,String> classifier) |
static <T extends JsonArrayBuilder> |
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
Collector<JsonValue,T,JsonArray> downstream) |
static Collector<JsonValue,JsonArrayBuilder,JsonArray> |
JsonCollectors.toJsonArray() |
static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject() |
static Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
Function<JsonValue,JsonValue> valueMapper) |
| Modifier and Type | Method and Description |
|---|---|
JsonGenerator |
JsonGenerator.write(JsonValue value) |
JsonGenerator |
JsonGenerator.write(String name,
JsonValue value) |
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.