Package | Description |
---|---|
javax.json |
Provides an object model API to process JSON.
|
javax.json.stream |
Provides a streaming API to parse and generate
JSON.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
JsonArray |
JsonArray represents an immutable JSON array
(an ordered sequence of zero or more values). |
interface |
JsonNumber |
An immutable JSON number value.
|
interface |
JsonObject |
JsonObject class represents an immutable JSON object value
(an unordered collection of zero or more name/value pairs). |
interface |
JsonString |
An immutable JSON string value.
|
interface |
JsonStructure |
Modifier and Type | Field | Description |
---|---|---|
static JsonValue |
JsonValue.FALSE |
JSON false value
|
static JsonValue |
JsonValue.NULL |
JSON null value.
|
static JsonValue |
JsonValue.TRUE |
JSON true value.
|
Modifier and Type | Method | Description |
---|---|---|
<T extends JsonValue> |
JsonArray.getValuesAs(Class<T> clazz) |
Returns a list a view of the specified type for the array.
|
Modifier and Type | Method | Description |
---|---|---|
JsonArrayBuilder |
JsonArrayBuilder.add(JsonValue value) |
Adds a value to the array.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value) |
Adds a name/
JsonValue pair to the JSON object associated with
this object builder. |
Modifier and Type | Method | Description |
---|---|---|
JsonGenerator |
JsonGenerator.write(String name,
JsonValue value) |
Writes a JSON name/value pair in the current object context.
|
JsonGenerator |
JsonGenerator.write(JsonValue value) |
Writes the specified value as a JSON value within
the current array context.
|
Copyright © 2019 Oracle. All rights reserved.