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 and 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 and 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 and 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 and 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 and Description |
---|---|
JsonGenerator |
JsonGenerator.write(JsonValue value)
Writes the specified value as a JSON value within
the current array context.
|
JsonGenerator |
JsonGenerator.write(String name,
JsonValue value)
Writes a JSON name/value pair in the current object context.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.