Uses of Interface
javax.json.JsonValue
Packages that use JsonValue
Package
Description
Provides an object model API to process JSON.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
Provides a streaming API to parse and generate
JSON.
-
Uses of JsonValue in javax.json
Subinterfaces of JsonValue in javax.jsonModifier and TypeInterfaceDescriptioninterface
JsonArray
represents an immutable JSON array (an ordered sequence of zero or more values).interface
An immutable JSON number value.interface
JsonObject
class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).interface
An immutable JSON string value.interface
Classes in javax.json that implement JsonValueModifier and TypeClassDescription(package private) final class
Private implementation of immutableJsonArray
.(package private) final class
Private implementation of immutableJsonObject
.(package private) final class
Private implementation ofJsonValue
for simpleJsonValue.ValueType
s allowing their usage in constants which are better to implementSerializable
.Fields in javax.json declared as JsonValueModifier and TypeFieldDescriptionstatic final JsonValue
JsonValue.FALSE
JSON false value.static final JsonValue
JsonValue.NULL
JSON null value.static final JsonValue
JsonValue.TRUE
JSON true value.Methods in javax.json with type parameters of type JsonValueModifier and TypeMethodDescriptionEmptyArray.getValuesAs
(Class<T> clazz) JsonArray.getValuesAs
(Class<T> clazz) Returns a list view of the specified type for the array.JsonArray.getValuesAs
(Function<K, T> func) Returns a list view for the array.Methods in javax.json that return JsonValueModifier and TypeMethodDescriptionApplies the JSON Merge Patch to the specifiedtarget
.EmptyArray.get
(int index) JsonPointer.getValue
(JsonStructure target) Returns the value at the referenced location in the specifiedtarget
.default JsonValue
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.JsonMergePatch.toJsonValue()
Returns theJsonMergePatch
asJsonValue
.Methods in javax.json that return types with arguments of type JsonValueMethods in javax.json with parameters of type JsonValueModifier and TypeMethodDescriptiondefault JsonArrayBuilder
Inserts a value to the array at the specified position.Adds a value to the array.Adds a name/JsonValue
pair to the JSON object associated with this object builder.Adds an "add" JSON Patch operation.<T extends JsonStructure>
TAdds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.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
.Adds a "replace" JSON Patch operation.<T extends JsonStructure>
TReplaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.default JsonArrayBuilder
Replaces a value in the array with the specified value at the specified position.Adds a "test" JSON Patch operation.default void
Writes the specifiedJsonValue
to the output source. -
Uses of JsonValue in javax.json.spi
Methods in javax.json.spi with parameters of type JsonValueModifier and TypeMethodDescriptionJsonProvider.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
.JsonProvider.createMergePatch
(JsonValue patch) Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue
. -
Uses of JsonValue in javax.json.stream
Methods in javax.json.stream that return JsonValueModifier and TypeMethodDescriptiondefault JsonValue
JsonParser.getValue()
Returns aJsonValue
at the current parser position.Methods in javax.json.stream that return types with arguments of type JsonValueModifier and TypeMethodDescriptionJsonParser.getArrayStream()
Returns a stream of theJsonArray
elements.JsonParser.getObjectStream()
Returns a stream of theJsonObject
's name/value pairs.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
.JsonCollectors.toJsonObject()
Constructs ajava.util.stream.Collector
that accumulates the inputMap.Entry<String,JsonValue>
elements into aJsonObject
.JsonCollectors.toJsonObject
(Function<JsonValue, String> keyMapper, Function<JsonValue, JsonValue> valueMapper) Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
.Methods in javax.json.stream with parameters of type JsonValueModifier and TypeMethodDescriptionWrites a JSON name/value pair in the current object context.Writes the specified value as a JSON value within the current array, field or root context.Method parameters in javax.json.stream with type arguments of type JsonValueModifier and TypeMethodDescriptionstatic 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.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
Classes in org.glassfish.json that implement JsonValueModifier and TypeClassDescriptionprivate static final class
(package private) class
JsonNumber impl.private static final class
private static final class
private static final class
private static final class
(package private) final class
JsonString implFields in org.glassfish.json declared as JsonValueModifier and TypeFieldDescriptionprivate JsonValue
JsonMergePatchImpl.patch
private JsonValue
JsonStructureParser.ArrayScope.value
private JsonValue
JsonStructureParser.ObjectScope.value
Fields in org.glassfish.json with type parameters of type JsonValueModifier and TypeFieldDescriptionJsonStructureParser.ArrayScope.it
JsonStructureParser.ObjectScope.it
JsonArrayBuilderImpl.JsonArrayImpl.valueList
JsonArrayBuilderImpl.valueList
JsonObjectBuilderImpl.JsonObjectImpl.valueMap
JsonObjectBuilderImpl.valueMap
Methods in org.glassfish.json with type parameters of type JsonValueMethods in org.glassfish.json that return JsonValueModifier and TypeMethodDescription(package private) static JsonValue
Generate a JSON Merge Patch from the source and targetJsonValue
.JsonArrayBuilderImpl.JsonArrayImpl.get
(int index) NodeReference.ArrayReference.get()
abstract JsonValue
NodeReference.get()
Get the value at the referenced location.NodeReference.ObjectReference.get()
NodeReference.RootReference.get()
(package private) JsonValue
JsonStructureParser.ArrayScope.getJsonValue()
(package private) JsonValue
JsonStructureParser.ObjectScope.getJsonValue()
(package private) abstract JsonValue
JsonStructureParser.Scope.getJsonValue()
JsonParserImpl.getValue()
private JsonValue
JsonPatchImpl.getValue
(JsonObject operation) JsonPointerImpl.getValue
(JsonStructure target) Returns the value at the referenced location in the specifiedtarget
(package private) static JsonValue
MapUtil.handle
(Object value, BufferPool bufferPool) private static JsonValue
JsonMergePatchImpl.mergePatch
(JsonValue target, JsonValue patch) Applies the specified patch to the specified target.JsonStructureParser.ArrayScope.next()
JsonReaderImpl.readValue()
static JsonValue
Reads the input JSON text and returns a JsonValue.JsonMergePatchImpl.toJsonValue()
Methods in org.glassfish.json that return types with arguments of type JsonValueModifier and TypeMethodDescriptionJsonObjectBuilderImpl.JsonObjectImpl.entrySet()
JsonParserImpl.getArrayStream()
JsonParserImpl.getObjectStream()
JsonParserImpl.getValueStream()
JsonStructureParser.ObjectScope.next()
Methods in org.glassfish.json with parameters of type JsonValueModifier and TypeMethodDescriptionAdds an "add" JSON Patch operation.JsonPointerImpl.add
(JsonStructure target, JsonValue value) Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.abstract JsonStructure
Add or replace a value at the referenced location.private void
JsonArrayBuilderImpl.addValueList
(int index, JsonValue value) private void
JsonArrayBuilderImpl.addValueList
(JsonValue value) JsonProviderImpl.createMergeDiff
(JsonValue source, JsonValue target) JsonProviderImpl.createMergePatch
(JsonValue patch) (package private) static JsonStructureParser.Scope
JsonStructureParser.Scope.createScope
(JsonValue value) (package private) static JsonValue
Generate a JSON Merge Patch from the source and targetJsonValue
.private void
private JsonStructure
JsonPointerImpl.execute
(BiFunction<NodeReference, JsonValue, JsonStructure> op, JsonStructure target, JsonValue value) Executes the operationprivate static JsonParser.Event
private static JsonValue
JsonMergePatchImpl.mergePatch
(JsonValue target, JsonValue patch) Applies the specified patch to the specified target.(package private) static String
JsonMessages.PARSER_SCOPE_ERR
(JsonValue value) private void
JsonObjectBuilderImpl.putValueMap
(String name, JsonValue value) Adds a "replace" JSON Patch operation.JsonPointerImpl.replace
(JsonStructure target, JsonValue value) Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.abstract JsonStructure
Replace the referenced value with the specified value.private void
JsonArrayBuilderImpl.setValueList
(int index, JsonValue value) Adds a "test" JSON Patch operation.void
Method parameters in org.glassfish.json with type arguments of type JsonValueModifier and TypeMethodDescriptionprivate JsonStructure
JsonPointerImpl.execute
(BiFunction<NodeReference, JsonValue, JsonStructure> op, JsonStructure target, JsonValue value) Executes the operationConstructors in org.glassfish.json with parameters of type JsonValueConstructor parameters in org.glassfish.json with type arguments of type JsonValueModifierConstructorDescription(package private)
JsonArrayImpl
(List<JsonValue> valueList, BufferPool bufferPool) (package private)
JsonObjectImpl
(Map<String, JsonValue> valueMap, BufferPool bufferPool) -
Uses of JsonValue in org.glassfish.json.jaxrs
Methods in org.glassfish.json.jaxrs that return JsonValueModifier and TypeMethodDescriptionJsonValueBodyReader.readFrom
(Class<JsonValue> jsonValueClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream inputStream) Methods in org.glassfish.json.jaxrs with parameters of type JsonValueModifier and TypeMethodDescriptionlong
JsonValueBodyWriter.getSize
(JsonValue jsonValue, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) void
JsonValueBodyWriter.writeTo
(JsonValue jsonValue, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> stringObjectMultivaluedMap, OutputStream outputStream) Method parameters in org.glassfish.json.jaxrs with type arguments of type JsonValueModifier and TypeMethodDescriptionJsonValueBodyReader.readFrom
(Class<JsonValue> jsonValueClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream inputStream)