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.
|
org.glassfish.json |
Modifier and Type | Interface and Description |
---|---|
interface |
JsonArray
JsonArray represents an immutable JSON array
(an ordered sequence of zero or more values). |
interface |
JsonObject
JsonObject class represents an immutable JSON object value
(an unordered collection of zero or more name/value pairs). |
Modifier and Type | Method and Description |
---|---|
<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 . |
<T extends JsonStructure> |
JsonPatch.apply(T target)
Applies the patch operations to the specified
target . |
<T extends JsonStructure> |
JsonPointer.remove(T target)
Removes the value at the reference location in the specified
target . |
<T extends JsonStructure> |
JsonPointer.replace(T target,
JsonValue value)
Replaces the value at the referenced location in the specified
target with the specified value . |
Modifier and Type | Method and Description |
---|---|
JsonStructure |
JsonReader.read()
Returns a JSON array or object that is represented in
the input source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonPointer.containsValue(JsonStructure target)
Returns
true if there is a value at the referenced location in the specified target . |
static JsonPatch |
Json.createDiff(JsonStructure source,
JsonStructure target)
Generates a JSON Patch (RFC 6902)
from the source and target
JsonStructure . |
JsonValue |
JsonPointer.getValue(JsonStructure target)
Returns the value at the referenced location in the specified
target . |
void |
JsonWriter.write(JsonStructure value)
|
Modifier and Type | Method and Description |
---|---|
JsonPatch |
JsonProvider.createDiff(JsonStructure source,
JsonStructure target)
Generates a JSON Patch (RFC 6902)
from the source and target
JsonStructure . |
Modifier and Type | Method and Description |
---|---|
<T extends JsonStructure> |
JsonPatchBuilderImpl.apply(T target)
A convenience method for
new JsonPatchImpl(build()).apply(target) . |
Modifier and Type | Method and Description |
---|---|
JsonStructure |
JsonPointerImpl.add(JsonStructure target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value . |
JsonStructure |
JsonPatchImpl.apply(JsonStructure target)
Applies the patch operations to the specified
target . |
JsonStructure |
JsonPointerImpl.remove(JsonStructure target)
Removes the value at the reference location in the specified
target |
JsonStructure |
JsonPointerImpl.replace(JsonStructure target,
JsonValue value)
Replaces the value at the referenced location in the specified
target with the specified value . |
Modifier and Type | Method and Description |
---|---|
JsonStructure |
JsonPointerImpl.add(JsonStructure target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value . |
JsonStructure |
JsonPatchImpl.apply(JsonStructure target)
Applies the patch operations to the specified
target . |
boolean |
JsonPointerImpl.containsValue(JsonStructure target)
Returns
true if there is a value at the referenced location in the specified target . |
JsonPatch |
JsonProviderImpl.createDiff(JsonStructure source,
JsonStructure target) |
static JsonArray |
JsonPatchImpl.diff(JsonStructure source,
JsonStructure target)
Generates a JSON Patch from the source and target
JsonStructure . |
JsonValue |
JsonPointerImpl.getValue(JsonStructure target)
Returns the value at the referenced location in the specified
target |
JsonStructure |
JsonPointerImpl.remove(JsonStructure target)
Removes the value at the reference location in the specified
target |
JsonStructure |
JsonPointerImpl.replace(JsonStructure target,
JsonValue value)
Replaces the value at the referenced location in the specified
target with the specified value . |
Copyright © 2019 Oracle. All rights reserved.