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 |
---|---|
default JsonArray |
JsonValue.asJsonArray()
Return the JsonValue as a JsonArray
|
JsonArray |
JsonArrayBuilder.build()
Returns the current array.
|
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 |
JsonPatch.toJsonArray()
Returns the
JsonPatch as JsonArray . |
Modifier and Type | Method and Description |
---|---|
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
|
static JsonPatch |
Json.createPatch(JsonArray array)
Creates a JSON Patch (RFC 6902)
from the specified operations.
|
static JsonPatchBuilder |
Json.createPatchBuilder(JsonArray array)
Creates a JSON Patch builder
(RFC 6902),
initialized with the specified operations.
|
void |
JsonWriter.writeArray(JsonArray array)
Writes the specified JSON
array to the output
source. |
Modifier and Type | Method and Description |
---|---|
JsonArrayBuilder |
JsonProvider.createArrayBuilder(JsonArray array)
Creates a JSON array builder, initialized with the specified array.
|
JsonPatch |
JsonProvider.createPatch(JsonArray array)
Creates a JSON Patch (RFC 6902)
from the specified operations.
|
JsonPatchBuilder |
JsonProvider.createPatchBuilder(JsonArray array)
Creates a JSON Patch builder
(RFC 6902),
initialized with the specified operations.
|
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 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 <T extends JsonArrayBuilder> |
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
Collector<JsonValue,T,JsonArray> downstream)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.