Uses of Interface
javax.json.JsonArray
-
Packages that use JsonArray 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.org.glassfish.json -
-
Uses of JsonArray in javax.json
Classes in javax.json that implement JsonArray Modifier and Type Class Description (package private) class
EmptyArray
Private implementation of immutableJsonArray
.Fields in javax.json declared as JsonArray Modifier and Type Field Description static JsonArray
JsonValue. EMPTY_JSON_ARRAY
The empty JSON array.Methods in javax.json that return JsonArray Modifier and Type Method Description default JsonArray
JsonValue. asJsonArray()
Return the JsonValue as a JsonArrayJsonArray
JsonArrayBuilder. build()
Returns the current array.JsonArray
EmptyArray. getJsonArray(int index)
JsonArray
EmptyObject. getJsonArray(java.lang.String name)
JsonArray
JsonArray. getJsonArray(int index)
Returns the array value at the specified position in this array.JsonArray
JsonObject. getJsonArray(java.lang.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 theJsonPatch
asJsonArray
.Methods in javax.json with parameters of type JsonArray Modifier and Type Method Description static JsonArrayBuilder
Json. createArrayBuilder(JsonArray array)
Creates a JSON array builder, initialized with the specified arraydefault JsonArrayBuilder
JsonBuilderFactory. createArrayBuilder(JsonArray array)
Creates aJsonArrayBuilder
instance, initialized with an 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 JSONarray
to the output source. -
Uses of JsonArray in javax.json.spi
Methods in javax.json.spi with parameters of type JsonArray Modifier and Type Method 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. -
Uses of JsonArray in javax.json.stream
Methods in javax.json.stream that return JsonArray Modifier and Type Method Description default JsonArray
JsonParser. getArray()
Returns aJsonArray
and advance the parser to the the correspondingEND_ARRAY
.Methods in javax.json.stream that return types with arguments of type JsonArray Modifier and Type Method Description static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray>
JsonCollectors. toJsonArray()
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonArray
.Methods in javax.json.stream with parameters of type JsonArray Modifier and Type Method Description JsonParser
JsonParserFactory. createParser(JsonArray array)
Creates a JSON parser from the specified JSON array.Method parameters in javax.json.stream with type arguments of type JsonArray Modifier and Type Method Description static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements. -
Uses of JsonArray in org.glassfish.json
Classes in org.glassfish.json that implement JsonArray Modifier and Type Class Description private static class
JsonArrayBuilderImpl.JsonArrayImpl
Fields in org.glassfish.json declared as JsonArray Modifier and Type Field Description private JsonArray
NodeReference.ArrayReference. array
private JsonArray
JsonPatchImpl. patch
Methods in org.glassfish.json that return JsonArray Modifier and Type Method Description JsonArray
NodeReference.ArrayReference. add(JsonValue value)
JsonArray
JsonArrayBuilderImpl.JsonArrayImpl. asJsonArray()
JsonArray
JsonArrayBuilderImpl. build()
JsonArray
JsonPatchBuilderImpl. buildAsJsonArray()
Returns the patch operations in a JsonArraystatic 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)
JsonArray
JsonParserImpl. getArray()
private JsonArray
JsonParserImpl. getArray(JsonArrayBuilder builder)
JsonArray
JsonArrayBuilderImpl.JsonArrayImpl. getJsonArray(int index)
JsonArray
JsonObjectBuilderImpl.JsonObjectImpl. getJsonArray(java.lang.String name)
JsonArray
JsonReaderImpl. readArray()
JsonArray
NodeReference.ArrayReference. remove()
JsonArray
NodeReference.ArrayReference. replace(JsonValue value)
JsonArray
JsonPatchImpl. toJsonArray()
Methods in org.glassfish.json with parameters of type JsonArray Modifier and Type Method Description JsonArrayBuilder
JsonBuilderFactoryImpl. createArrayBuilder(JsonArray array)
JsonArrayBuilder
JsonProviderImpl. createArrayBuilder(JsonArray array)
JsonParser
JsonParserFactoryImpl. createParser(JsonArray array)
JsonPatch
JsonProviderImpl. createPatch(JsonArray array)
JsonPatchBuilder
JsonProviderImpl. createPatchBuilder(JsonArray array)
private void
JsonPatchImpl.DiffGenerator. diffArray(java.lang.String path, JsonArray source, JsonArray target)
private void
JsonPatchImpl.DiffGenerator. emit(java.lang.String path, JsonArray source, JsonArray target, int[][] c, int i, int j)
static NodeReference
NodeReference. of(JsonArray array, int index)
Returns aNodeReference
for a member value in a JSON array.void
JsonWriterImpl. writeArray(JsonArray array)
Constructors in org.glassfish.json with parameters of type JsonArray Constructor Description ArrayReference(JsonArray array, int index)
ArrayScope(JsonArray array)
JsonArrayBuilderImpl(JsonArray array, BufferPool bufferPool)
JsonPatchBuilderImpl(JsonArray patch)
Creates a JsonPatchBuilderImpl, starting with the specified JSON PatchJsonPatchImpl(JsonArray patch)
Constructs a JsonPatchImplJsonStructureParser(JsonArray array)
-