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