| 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.
|
| javax.json.stream |
Provides a streaming API to parse and generate
JSON.
|
| Modifier and Type | Field and Description |
|---|---|
static JsonArray |
JsonValue.EMPTY_JSON_ARRAY
The empty JSON array.
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
JsonPointer.add(JsonArray target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value. |
JsonArray |
JsonPatchBuilder.apply(JsonArray target)
A convenience method for
build().apply(target) |
JsonArray |
JsonPatch.apply(JsonArray target)
Applies the patch operations to the specified
target. |
default JsonArray |
JsonValue.asJsonArray()
Return the JsonValue as a JsonArray
|
JsonArray |
JsonPatchBuilder.build()
Returns the patch operations in a JsonArray
|
JsonArray |
JsonArrayBuilder.build()
Returns the current array.
|
static JsonArray |
JsonPatch.diff(JsonStructure source,
JsonStructure target)
Generates a JSON Patch from the source and target
JsonStructure. |
JsonArray |
JsonArray.getJsonArray(int index)
Returns the array value at the specified position in this array.
|
JsonArray |
JsonObject.getJsonArray(String name)
Returns the array value to which the specified name is mapped.
|
JsonArray |
JsonReader.readArray()
Returns a JSON array that is represented in
the input source.
|
JsonArray |
JsonPointer.remove(JsonArray target)
Removes the value at the reference location in the specified
target |
JsonArray |
JsonPointer.replace(JsonArray target,
JsonValue value)
Replaces the value at the referenced location in the specified
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
JsonPointer.add(JsonArray target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value. |
JsonArray |
JsonPatchBuilder.apply(JsonArray target)
A convenience method for
build().apply(target) |
JsonArray |
JsonPatch.apply(JsonArray target)
Applies the patch operations to the specified
target. |
default JsonArrayBuilder |
JsonBuilderFactory.createArrayBuilder(JsonArray array)
Creates a
JsonArrayBuilder instance, initialized with an array. |
static JsonArrayBuilder |
Json.createArrayBuilder(JsonArray array)
Creates a JSON array builder, initialized with the specified array
|
JsonArray |
JsonPointer.remove(JsonArray target)
Removes the value at the reference location in the specified
target |
JsonArray |
JsonPointer.replace(JsonArray target,
JsonValue value)
Replaces the value at the referenced location in the specified
|
void |
JsonWriter.writeArray(JsonArray array)
Writes the specified JSON
array to the output
source. |
| Constructor and Description |
|---|
JsonPatch(JsonArray patch)
Constructs a JsonPatch
|
JsonPatchBuilder(JsonArray patch)
Creates a JsonPatchBuilder, starting with the specified
JSON Patch
|
| Modifier and Type | Method and Description |
|---|---|
JsonArrayBuilder |
JsonProvider.createArrayBuilder(JsonArray array)
Creates a JSON array builder, initialized with the specified array
|
| Modifier and Type | Method and Description |
|---|---|
default JsonArray |
JsonParser.getArray()
Returns a
JsonArray and advance the parser to the
the corresponding END_ARRAY. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray> |
JsonCollectors.toJsonArray()
Constructs a
java.util.stream.Collector that accumulates the input JsonValue
elements into a JsonArray. |
| Modifier and Type | Method and Description |
|---|---|
JsonParser |
JsonParserFactory.createParser(JsonArray array)
Creates a JSON parser from the specified JSON array.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(java.util.function.Function<JsonValue,String> classifier,
java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray> downstream)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@json-processing-spec.java.net