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 JsonObject |
JsonValue.EMPTY_JSON_OBJECT
The empty JSON object.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
JsonPointer.add(JsonObject target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value . |
JsonObject |
JsonPatchBuilder.apply(JsonObject target)
A convenience method for
build().apply(target) |
JsonObject |
JsonPatch.apply(JsonObject target)
Applies the patch operations to the specified
target . |
default JsonObject |
JsonValue.asJsonObject()
Return the JsonValue as a JsonObject
|
JsonObject |
JsonObjectBuilder.build()
Returns the JSON object associated with this object builder.
|
JsonObject |
JsonArray.getJsonObject(int index)
Returns the object value at the specified position in this array.
|
JsonObject |
JsonObject.getJsonObject(String name)
Returns the object value to which the specified name is mapped.
|
JsonObject |
JsonReader.readObject()
Returns a JSON object that is represented in
the input source.
|
JsonObject |
JsonPointer.remove(JsonObject target)
Removes the value at the reference location in the specified
target |
JsonObject |
JsonPointer.replace(JsonObject target,
JsonValue value)
Replaces the value at the referenced location in the specified
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
JsonPointer.add(JsonObject target,
JsonValue value)
Adds or replaces a value at the referenced location in the specified
target with the specified value . |
JsonObject |
JsonPatchBuilder.apply(JsonObject target)
A convenience method for
build().apply(target) |
JsonObject |
JsonPatch.apply(JsonObject target)
Applies the patch operations to the specified
target . |
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(JsonObject object)
Creates a
JsonObjectBuilder instance, initialized with an object |
static JsonObjectBuilder |
Json.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.
|
JsonObject |
JsonPointer.remove(JsonObject target)
Removes the value at the reference location in the specified
target |
JsonObject |
JsonPointer.replace(JsonObject target,
JsonValue value)
Replaces the value at the referenced location in the specified
|
void |
JsonWriter.writeObject(JsonObject object)
Writes the specified JSON
object to the output
source. |
Modifier and Type | Method and Description |
---|---|
JsonObjectBuilder |
JsonProvider.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.
|
Modifier and Type | Method and Description |
---|---|
default JsonObject |
JsonParser.getObject()
Returns a
JsonObject and advances the parser to the
corresponding END_OBJECT . |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(java.util.function.Function<JsonValue,String> classifier)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
static java.util.stream.Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(java.util.function.Function<JsonValue,String> classifier,
java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray> downstream)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
static java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(java.util.function.Function<JsonValue,String> keyMapper,
java.util.function.Function<JsonValue,JsonValue> valueMapper)
Constructs a
java.util.stream.Collector that accumulates the input JsonValue
elements into a JsonObject . |
Modifier and Type | Method and Description |
---|---|
JsonParser |
JsonParserFactory.createParser(JsonObject obj)
Creates a JSON parser from the specified JSON object.
|
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : [email protected]