Uses of Interface
jakarta.json.JsonArray
Packages that use JsonArray
Package
Description
Provides an object model API to process JSON.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
Provides a streaming API to parse and generate
JSON.
-
Uses of JsonArray in jakarta.json
Fields in jakarta.json declared as JsonArrayModifier and TypeFieldDescriptionstatic final JsonArrayJsonValue.EMPTY_JSON_ARRAYThe empty JSON array.Methods in jakarta.json that return JsonArrayModifier and TypeMethodDescriptiondefault JsonArrayJsonValue.asJsonArray()Return the JsonValue as a JsonArrayJsonArrayBuilder.build()Returns the current array.JsonArray.getJsonArray(int index) Returns the array value at the specified position in this array.JsonObject.getJsonArray(String name) Returns the array value to which the specified name is mapped.JsonReader.readArray()Returns a JSON array that is represented in the input source.JsonPatch.toJsonArray()Returns theJsonPatchasJsonArray.Methods in jakarta.json with parameters of type JsonArrayModifier and TypeMethodDescriptionstatic JsonArrayBuilderJson.createArrayBuilder(JsonArray array) Creates a JSON array builder, initialized with the specified arraydefault JsonArrayBuilderJsonBuilderFactory.createArrayBuilder(JsonArray array) Creates aJsonArrayBuilderinstance, initialized with an array.static JsonPatchJson.createPatch(JsonArray array) Creates a JSON Patch (RFC 6902) from the specified operations.static JsonPatchBuilderJson.createPatchBuilder(JsonArray array) Creates a JSON Patch builder (RFC 6902), initialized with the specified operations.voidJsonWriter.writeArray(JsonArray array) Writes the specified JSONarrayto the output source. -
Uses of JsonArray in jakarta.json.spi
Methods in jakarta.json.spi with parameters of type JsonArrayModifier and TypeMethodDescriptionJsonProvider.createArrayBuilder(JsonArray array) Creates a JSON array builder, initialized with the specified array.JsonProvider.createPatch(JsonArray array) Creates a JSON Patch (RFC 6902) from the specified operations.JsonProvider.createPatchBuilder(JsonArray array) Creates a JSON Patch builder (RFC 6902), initialized with the specified operations. -
Uses of JsonArray in jakarta.json.stream
Methods in jakarta.json.stream that return JsonArrayModifier and TypeMethodDescriptiondefault JsonArrayJsonParser.getArray()Returns aJsonArrayand advance the parser to the the correspondingEND_ARRAY.Methods in jakarta.json.stream that return types with arguments of type JsonArrayModifier and TypeMethodDescriptionstatic Collector<JsonValue,JsonArrayBuilder, JsonArray> JsonCollectors.toJsonArray()Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonArray.Methods in jakarta.json.stream with parameters of type JsonArrayModifier and TypeMethodDescriptionJsonParserFactory.createParser(JsonArray array) Creates a JSON parser from the specified JSON array.Method parameters in jakarta.json.stream with type arguments of type JsonArrayModifier and TypeMethodDescriptionstatic <T extends JsonArrayBuilder>
Collector<JsonValue,Map<String, T>, JsonObject> JsonCollectors.groupingBy(Function<JsonValue, String> classifier, Collector<JsonValue, T, JsonArray> downstream) Constructs ajava.util.stream.Collectorthat implements a "group by" operation on the inputJsonValueelements.