Uses of Interface
javax.json.JsonValue
-
Packages that use JsonValue 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. -
-
Uses of JsonValue in javax.json
Subinterfaces of JsonValue in javax.json Modifier and Type Interface Description interfaceJsonArrayJsonArrayrepresents an immutable JSON array (an ordered sequence of zero or more values).interfaceJsonNumberAn immutable JSON number value.interfaceJsonObjectJsonObjectclass represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).interfaceJsonStringAn immutable JSON string value.interfaceJsonStructureFields in javax.json declared as JsonValue Modifier and Type Field Description static JsonValueJsonValue. FALSEJSON false value.static JsonValueJsonValue. NULLJSON null value.static JsonValueJsonValue. TRUEJSON true value.Methods in javax.json with type parameters of type JsonValue Modifier and Type Method Description <T extends JsonValue>
List<T>JsonArray. getValuesAs(Class<T> clazz)Returns a list view of the specified type for the array.default <T,K extends JsonValue>
List<T>JsonArray. getValuesAs(Function<K,T> func)Returns a list view for the array.Methods in javax.json that return JsonValue Modifier and Type Method Description JsonValueJsonMergePatch. apply(JsonValue target)Applies the JSON Merge Patch to the specifiedtarget.JsonValueJsonPointer. getValue(JsonStructure target)Returns the value at the referenced location in the specifiedtarget.default JsonValueJsonStructure. getValue(String jsonPointer)Get 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.JsonValueJsonMergePatch. toJsonValue()Returns theJsonMergePatchasJsonValue.Methods in javax.json with parameters of type JsonValue Modifier and Type Method Description default JsonArrayBuilderJsonArrayBuilder. add(int index, JsonValue value)Inserts a value to the array at the specified position.JsonArrayBuilderJsonArrayBuilder. add(JsonValue value)Adds a value to the array.JsonObjectBuilderJsonObjectBuilder. add(String name, JsonValue value)Adds a name/JsonValuepair to the JSON object associated with this object builder.JsonPatchBuilderJsonPatchBuilder. add(String path, JsonValue value)Adds an "add" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. add(T target, JsonValue value)Adds or replaces a value at the referenced location in the specifiedtargetwith the specifiedvalue.JsonValueJsonMergePatch. apply(JsonValue target)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.JsonPatchBuilderJsonPatchBuilder. replace(String path, JsonValue value)Adds a "replace" JSON Patch operation.<T extends JsonStructure>
TJsonPointer. replace(T target, JsonValue value)Replaces the value at the referenced location in the specifiedtargetwith the specifiedvalue.default JsonArrayBuilderJsonArrayBuilder. set(int index, JsonValue value)Replaces a value in the array with the specified value at the specified position.JsonPatchBuilderJsonPatchBuilder. test(String path, JsonValue value)Adds a "test" JSON Patch operation.default voidJsonWriter. write(JsonValue value)Writes the specifiedJsonValueto the output source. -
Uses of JsonValue in javax.json.spi
Methods in javax.json.spi with parameters of type JsonValue Modifier and Type Method Description JsonMergePatchJsonProvider. createMergeDiff(JsonValue source, JsonValue target)Generates a JSON Merge Patch (RFC 7396) from the source and targetJsonValues which when applied to thesource, yields thetarget.JsonMergePatchJsonProvider. createMergePatch(JsonValue patch)Creates JSON Merge Patch (RFC 7396) from specifiedJsonValue. -
Uses of JsonValue in javax.json.stream
Methods in javax.json.stream that return JsonValue Modifier and Type Method Description default JsonValueJsonParser. getValue()Returns aJsonValueat the current parser position.Methods in javax.json.stream that return types with arguments of type JsonValue Modifier and Type Method Description default Stream<JsonValue>JsonParser. getArrayStream()Returns a stream of theJsonArrayelements.default Stream<Map.Entry<String,JsonValue>>JsonParser. getObjectStream()Returns a stream of theJsonObject's name/value pairs.default Stream<JsonValue>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.static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject>JsonCollectors. toJsonObject()Constructs ajava.util.stream.Collectorthat accumulates the inputMap.Entry<String,JsonValue>elements into aJsonObject.static Collector<JsonValue,JsonObjectBuilder,JsonObject>JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper, Function<JsonValue,JsonValue> valueMapper)Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonObject.Methods in javax.json.stream with parameters of type JsonValue Modifier and Type Method Description JsonGeneratorJsonGenerator. write(String name, JsonValue value)Writes a JSON name/value pair in the current object context.JsonGeneratorJsonGenerator. write(JsonValue value)Writes the specified value as a JSON value within the current array, field or root context.Method parameters in javax.json.stream with type arguments of type JsonValue Modifier and Type Method Description 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 <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,JsonObjectBuilder,JsonObject>JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper, Function<JsonValue,JsonValue> valueMapper)Constructs ajava.util.stream.Collectorthat accumulates the inputJsonValueelements into aJsonObject.
-