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 |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 Collector<JsonValue,Map<String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(Function<JsonValue,String> classifier)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
static <T extends JsonArrayBuilder> |
JsonCollectors.groupingBy(Function<JsonValue,String> classifier,
Collector<JsonValue,T,JsonArray> downstream)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject()
Constructs a
java.util.stream.Collector that accumulates the input Map.Entry<String,JsonValue>
elements into a JsonObject . |
static Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
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 © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.