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(java.lang.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 |
---|---|
static JsonObjectBuilder |
Json.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.
|
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(JsonObject object)
Creates a
JsonObjectBuilder instance, initialized with an 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 java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject> |
JsonCollectors.groupingBy(java.util.function.Function<JsonValue,java.lang.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(java.util.function.Function<JsonValue,java.lang.String> classifier,
java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs a
java.util.stream.Collector that implements a "group by" operation on the
input JsonValue elements. |
static java.util.stream.Collector<java.util.Map.Entry<java.lang.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 java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(java.util.function.Function<JsonValue,java.lang.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.
|
Comments to: jsonp-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.