Uses of Interface
javax.json.JsonStructure
Packages that use JsonStructure
Package
Description
Provides an object model API to process JSON.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
-
Uses of JsonStructure in javax.json
Subinterfaces of JsonStructure in javax.jsonModifier and TypeInterfaceDescriptioninterface
JsonArray
represents an immutable JSON array (an ordered sequence of zero or more values).interface
JsonObject
class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).Classes in javax.json that implement JsonStructureModifier and TypeClassDescription(package private) final class
Private implementation of immutableJsonArray
.(package private) final class
Private implementation of immutableJsonObject
.Methods in javax.json with type parameters of type JsonStructureModifier and TypeMethodDescription<T extends JsonStructure>
TAdds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.<T extends JsonStructure>
TJsonPatch.apply
(T target) Applies the patch operations to the specifiedtarget
.<T extends JsonStructure>
TJsonPointer.remove
(T target) Removes the value at the reference location in the specifiedtarget
.<T extends JsonStructure>
TReplaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.Methods in javax.json that return JsonStructureModifier and TypeMethodDescriptionJsonReader.read()
Returns a JSON array or object that is represented in the input source.Methods in javax.json with parameters of type JsonStructureModifier and TypeMethodDescriptionboolean
JsonPointer.containsValue
(JsonStructure target) Returnstrue
if there is a value at the referenced location in the specifiedtarget
.static JsonPatch
Json.createDiff
(JsonStructure source, JsonStructure target) Generates a JSON Patch (RFC 6902) from the source and targetJsonStructure
.JsonPointer.getValue
(JsonStructure target) Returns the value at the referenced location in the specifiedtarget
.void
JsonWriter.write
(JsonStructure value) -
Uses of JsonStructure in javax.json.spi
Methods in javax.json.spi with parameters of type JsonStructureModifier and TypeMethodDescriptionJsonProvider.createDiff
(JsonStructure source, JsonStructure target) Generates a JSON Patch (RFC 6902) from the source and targetJsonStructure
. -
Uses of JsonStructure in org.glassfish.json
Classes in org.glassfish.json that implement JsonStructureModifier and TypeClassDescriptionprivate static final class
private static final class
Fields in org.glassfish.json declared as JsonStructureMethods in org.glassfish.json with type parameters of type JsonStructureModifier and TypeMethodDescription<T extends JsonStructure>
TJsonPatchBuilderImpl.apply
(T target) A convenience method fornew JsonPatchImpl(build()).apply(target)
.Methods in org.glassfish.json that return JsonStructureModifier and TypeMethodDescriptionJsonPointerImpl.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.JsonPatchImpl.apply
(JsonStructure target) Applies the patch operations to the specifiedtarget
.private JsonStructure
JsonPatchImpl.apply
(JsonStructure target, JsonObject operation) Applies a JSON Patch operation to the target.private JsonStructure
JsonPointerImpl.execute
(BiFunction<NodeReference, JsonValue, JsonStructure> op, JsonStructure target, JsonValue value) Executes the operationJsonReaderImpl.read()
JsonPointerImpl.remove
(JsonStructure target) Removes the value at the reference location in the specifiedtarget
abstract JsonStructure
NodeReference.remove()
Remove the name/value pair from the JSON object, or the value in a JSON array, as specified by the referenceNodeReference.RootReference.remove()
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.Methods in org.glassfish.json with parameters of type JsonStructureModifier and TypeMethodDescriptionJsonPointerImpl.add
(JsonStructure target, JsonValue value) Adds or replaces a value at the referenced location in the specifiedtarget
with the specifiedvalue
.JsonPatchImpl.apply
(JsonStructure target) Applies the patch operations to the specifiedtarget
.private JsonStructure
JsonPatchImpl.apply
(JsonStructure target, JsonObject operation) Applies a JSON Patch operation to the target.boolean
JsonPointerImpl.containsValue
(JsonStructure target) Returnstrue
if there is a value at the referenced location in the specifiedtarget
.JsonProviderImpl.createDiff
(JsonStructure source, JsonStructure target) static JsonArray
JsonPatchImpl.diff
(JsonStructure source, JsonStructure target) Generates a JSON Patch from the source and targetJsonStructure
.(package private) JsonArray
JsonPatchImpl.DiffGenerator.diff
(JsonStructure source, JsonStructure target) private JsonStructure
JsonPointerImpl.execute
(BiFunction<NodeReference, JsonValue, JsonStructure> op, JsonStructure target, JsonValue value) Executes the operationprivate NodeReference[]
JsonPointerImpl.getReferences
(JsonStructure target) Computes theNodeReference
s for each node on the path of the JSON Pointer, in reverse order, starting from the leaf nodeJsonPointerImpl.getValue
(JsonStructure target) Returns the value at the referenced location in the specifiedtarget
static NodeReference
NodeReference.of
(JsonStructure structure) Returns aNodeReference
for aJsonStructure
.JsonPointerImpl.remove
(JsonStructure target) Removes the value at the reference location in the specifiedtarget
JsonPointerImpl.replace
(JsonStructure target, JsonValue value) Replaces the value at the referenced location in the specifiedtarget
with the specifiedvalue
.void
JsonWriterImpl.write
(JsonStructure value) Method parameters in org.glassfish.json with type arguments of type JsonStructureModifier 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 JsonStructure -
Uses of JsonStructure in org.glassfish.json.jaxrs1x
Methods in org.glassfish.json.jaxrs1x that return JsonStructureModifier and TypeMethodDescriptionJsonStructureBodyReader.readFrom
(Class<JsonStructure> jsonStructureClass, 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.jaxrs1x with parameters of type JsonStructureModifier and TypeMethodDescriptionlong
JsonStructureBodyWriter.getSize
(JsonStructure jsonStructure, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) void
JsonStructureBodyWriter.writeTo
(JsonStructure jsonStructure, 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.jaxrs1x with type arguments of type JsonStructureModifier and TypeMethodDescriptionJsonStructureBodyReader.readFrom
(Class<JsonStructure> jsonStructureClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream inputStream)