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.
|
Modifier and Type | Method and Description |
---|---|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigDecimal value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigInteger value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
boolean value)
Adds a name/
JsonValue#TRUE or name/JsonValue#FALSE pair
to the JSON object associated with this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
double value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
int value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonArrayBuilder builder)
Adds a name/
JsonArray pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Adds a name/
JsonObject pair to the JSON object associated
with this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value)
Adds a name/
JsonValue pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
long value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
String value)
Adds a name/
JsonString pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.addNull(String name)
Adds a name/
JsonValue#NULL pair to the JSON object associated
with this object builder where the value is null . |
JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder()
Creates a
JsonObjectBuilder instance that is used to build
JsonObject . |
static JsonObjectBuilder |
Json.createObjectBuilder()
Creates a JSON object builder
|
Modifier and Type | Method and Description |
---|---|
JsonArrayBuilder |
JsonArrayBuilder.add(JsonObjectBuilder builder)
Adds a
JsonObject from an object builder to the array. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Adds a name/
JsonObject pair to the JSON object associated
with this object builder. |
Modifier and Type | Method and Description |
---|---|
abstract JsonObjectBuilder |
JsonProvider.createObjectBuilder()
Creates a JSON object builder
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.