Uses of Interface
jakarta.json.JsonValue
Packages that use JsonValue
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 JsonValue in jakarta.json
Subinterfaces of JsonValue in jakarta.jsonModifier and TypeInterfaceDescriptioninterfaceJsonArrayrepresents an immutable JSON array (an ordered sequence of zero or more values).interfaceAn immutable JSON number value.interfaceJsonObjectclass represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).interfaceAn immutable JSON string value.interfaceFields in jakarta.json declared as JsonValueModifier and TypeFieldDescriptionstatic final JsonValueJsonValue.FALSEJSON false value.static final JsonValueJsonValue.NULLJSON null value.static final JsonValueJsonValue.TRUEJSON true value.Methods in jakarta.json with type parameters of type JsonValueModifier and TypeMethodDescriptionJsonArray.getValuesAs(Class<T> clazz) Returns a list view of the specified type for the array.JsonArray.getValuesAs(Function<K, T> func) Returns a list view for the array.Methods in jakarta.json that return JsonValueModifier and TypeMethodDescriptionApplies the JSON Merge Patch to the specifiedtarget.JsonPointer.getValue(JsonStructure target) Returns the value at the referenced location in the specifiedtarget.default JsonValueGet the value referenced by the provided JSON Pointer in the JsonStructure.default JsonValueJsonReader.readValue()Returns a JSON value that is represented in the input source.JsonMergePatch.toJsonValue()Returns theJsonMergePatchasJsonValue.Methods in jakarta.json with parameters of type JsonValueModifier and TypeMethodDescriptiondefault JsonArrayBuilderInserts a value to the array at the specified position.Adds a value to the array.Adds a name/JsonValuepair to the JSON object associated with this object builder.Adds an "add" JSON Patch operation.<T extends JsonStructure>
TAdds or replaces a value at the referenced location in the specifiedtargetwith the specifiedvalue.Applies the JSON Merge Patch to the specifiedtarget.static JsonMergePatchJson.createMergeDiff(JsonValue source, JsonValue target) Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValues which when applied to thesource, yields thetarget.static JsonMergePatchJson.createMergePatch(JsonValue patch) Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue.Adds a "replace" JSON Patch operation.<T extends JsonStructure>
TReplaces the value at the referenced location in the specifiedtargetwith the specifiedvalue.default JsonArrayBuilderReplaces a value in the array with the specified value at the specified position.Adds a "test" JSON Patch operation.default voidWrites the specifiedJsonValueto the output source. -
Uses of JsonValue in jakarta.json.spi
Methods in jakarta.json.spi with parameters of type JsonValueModifier and TypeMethodDescriptionJsonProvider.createMergeDiff(JsonValue source, JsonValue target) Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValues which when applied to thesource, yields thetarget.JsonProvider.createMergePatch(JsonValue patch) Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue. -
Uses of JsonValue in jakarta.json.stream
Methods in jakarta.json.stream that return JsonValueModifier and TypeMethodDescriptiondefault JsonValueJsonParser.getValue()Returns aJsonValueat the current parser position.Methods in jakarta.json.stream that return types with arguments of type JsonValueModifier and TypeMethodDescriptionJsonParser.getArrayStream()Returns a stream of theJsonArrayelements.JsonParser.getObjectStream()Returns a stream of theJsonObject's name/value pairs.JsonParser.getValueStream()Returns a stream ofJsonValuefrom a sequence of JSON values.static Collector<JsonValue,Map<String, JsonArrayBuilder>, JsonObject> JsonCollectors.groupingBy(Function<JsonValue, String> classifier) Constructs ajava.util.stream.Collectorthat implements a "group by" operation on the inputJsonValueelements.static <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.static Collector<JsonValue,JsonArrayBuilder, JsonArray> JsonCollectors.toJsonArray()Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonArray.JsonCollectors.toJsonObject()Constructs ajava.util.stream.Collectorthat accumulates the inputMap.Entry<String,JsonValue>elements into aJsonObject.JsonCollectors.toJsonObject(Function<JsonValue, String> keyMapper, Function<JsonValue, JsonValue> valueMapper) Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonObject.Methods in jakarta.json.stream with parameters of type JsonValueModifier and TypeMethodDescriptionWrites the specified value as a JSON value within the current array, field or root context.Writes a JSON name/value pair in the current object context.Method parameters in jakarta.json.stream with type arguments of type JsonValueModifier and TypeMethodDescriptionstatic Collector<JsonValue,Map<String, JsonArrayBuilder>, JsonObject> JsonCollectors.groupingBy(Function<JsonValue, String> classifier) Constructs ajava.util.stream.Collectorthat implements a "group by" operation on the inputJsonValueelements.static <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.static <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.JsonCollectors.toJsonObject(Function<JsonValue, String> keyMapper, Function<JsonValue, JsonValue> valueMapper) Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonObject.