Uses of Interface
jakarta.json.JsonValue
-
Packages that use JsonValue 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.org.glassfish.json -
-
Uses of JsonValue in jakarta.json
Subinterfaces of JsonValue in jakarta.json Modifier and Type Interface 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
Fields in jakarta.json declared as JsonValue Modifier and Type Field Description static JsonValue
JsonValue. FALSE
JSON false value.static JsonValue
JsonValue. NULL
JSON null value.static JsonValue
JsonValue. TRUE
JSON true value.Methods in jakarta.json with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
List<T>JsonArray. getValuesAs(Class<T> clazz)
Returns a list view of the specified type for the array.default <T,K extends JsonValue>
List<T>JsonArray. getValuesAs(Function<K,T> func)
Returns a list view for the array.Methods in jakarta.json that return JsonValue Modifier and Type Method Description JsonValue
JsonMergePatch. apply(JsonValue target)
Applies the JSON Merge Patch to the specifiedtarget
.JsonValue
JsonPointer. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
.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 theJsonMergePatch
asJsonValue
.Methods in jakarta.json with parameters of type JsonValue Modifier and Type Method 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.JsonObjectBuilder
JsonObjectBuilder. add(String name, JsonValue value)
Adds a name/JsonValue
pair to the JSON object associated with this object builder.JsonPatchBuilder
JsonPatchBuilder. add(String path, JsonValue value)
Adds an "add" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. add(T target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonValue
JsonMergePatch. apply(JsonValue target)
Applies the JSON Merge Patch to the specifiedtarget
.static JsonMergePatch
Json. createMergeDiff(JsonValue source, JsonValue target)
Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValue
s which when applied to thesource
, yields thetarget
.static JsonMergePatch
Json. createMergePatch(JsonValue patch)
Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue
.JsonPatchBuilder
JsonPatchBuilder. replace(String path, JsonValue value)
Adds a "replace" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. replace(T target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with 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 specifiedJsonValue
to the output source. -
Uses of JsonValue in jakarta.json.spi
Methods in jakarta.json.spi with parameters of type JsonValue Modifier and Type Method Description JsonMergePatch
JsonProvider. createMergeDiff(JsonValue source, JsonValue target)
Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValue
s which when applied to thesource
, yields thetarget
.JsonMergePatch
JsonProvider. createMergePatch(JsonValue patch)
Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue
. -
Uses of JsonValue in jakarta.json.stream
Methods in jakarta.json.stream that return JsonValue Modifier and Type Method Description default JsonValue
JsonParser. getValue()
Returns aJsonValue
at the current parser position.Methods in jakarta.json.stream that return types with arguments of type JsonValue Modifier and Type Method Description default Stream<JsonValue>
JsonParser. getArrayStream()
Returns a stream of theJsonArray
elements.default Stream<Map.Entry<String,JsonValue>>
JsonParser. getObjectStream()
Returns a stream of theJsonObject
's name/value pairs.default Stream<JsonValue>
JsonParser. getValueStream()
Returns a stream ofJsonValue
from a sequence of JSON values.static Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject>
JsonCollectors. groupingBy(Function<JsonValue,String> classifier)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
Collector<JsonValue,Map<String,T>,JsonObject>JsonCollectors. groupingBy(Function<JsonValue,String> classifier, Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static Collector<JsonValue,JsonArrayBuilder,JsonArray>
JsonCollectors. toJsonArray()
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonArray
.static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject()
Constructs ajava.util.stream.Collector
that 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 ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
.Methods in jakarta.json.stream with parameters of type JsonValue Modifier and Type Method 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.Method parameters in jakarta.json.stream with type arguments of type JsonValue Modifier and Type Method Description static Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject>
JsonCollectors. groupingBy(Function<JsonValue,String> classifier)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
Collector<JsonValue,Map<String,T>,JsonObject>JsonCollectors. groupingBy(Function<JsonValue,String> classifier, Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
Collector<JsonValue,Map<String,T>,JsonObject>JsonCollectors. groupingBy(Function<JsonValue,String> classifier, Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static Collector<JsonValue,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper, Function<JsonValue,JsonValue> valueMapper)
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
. -
Uses of JsonValue in org.glassfish.json
Methods in org.glassfish.json that return JsonValue Modifier and Type Method Description JsonValue
JsonMergePatchImpl. apply(JsonValue target)
JsonValue
JsonParserImpl. getValue()
JsonValue
JsonPointerImpl. getValue(JsonStructure target)
Returns the value at the referenced location in the specifiedtarget
static JsonValue
JsonUtil. toJson(String jsonString)
Reads the input JSON text and returns a JsonValue.JsonValue
JsonMergePatchImpl. toJsonValue()
Methods in org.glassfish.json that return types with arguments of type JsonValue Modifier and Type Method Description Stream<JsonValue>
JsonParserImpl. getArrayStream()
Stream<Map.Entry<String,JsonValue>>
JsonParserImpl. getObjectStream()
Stream<JsonValue>
JsonParserImpl. getValueStream()
Methods in org.glassfish.json with parameters of type JsonValue Modifier and Type Method Description JsonPatchBuilder
JsonPatchBuilderImpl. add(String path, JsonValue value)
Adds an "add" JSON Patch operation.JsonStructure
JsonPointerImpl. add(JsonStructure target, JsonValue value)
Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonValue
JsonMergePatchImpl. apply(JsonValue target)
JsonMergePatch
JsonProviderImpl. createMergeDiff(JsonValue source, JsonValue target)
JsonMergePatch
JsonProviderImpl. createMergePatch(JsonValue patch)
JsonPatchBuilder
JsonPatchBuilderImpl. replace(String path, JsonValue value)
Adds a "replace" JSON Patch operation.JsonStructure
JsonPointerImpl. replace(JsonStructure target, JsonValue value)
Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonPatchBuilder
JsonPatchBuilderImpl. test(String path, JsonValue value)
Adds a "test" JSON Patch operation.Constructors in org.glassfish.json with parameters of type JsonValue Constructor Description JsonMergePatchImpl(JsonValue patch)
-