Package | Description |
---|---|
javax.json |
Java API for JSON Processing API provides a way to process
(for e.g.
|
javax.json.stream |
Provides a streaming API to parse and generate
JSON.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JsonArray
JsonArray class represents an immutable JSON array value
(an ordered sequence of zero or more values). |
interface |
JsonNumber
JsonNumber represents 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
JsonString represents 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.getValue(int index,
Class<T> clazz)
Returns the value at the specified position in this JSON array values.
|
<T extends JsonValue> |
JsonObject.getValue(String name,
Class<T> clazz)
Returns the value to which the specified name is mapped.
|
Modifier and Type | Method and Description |
---|---|
JsonArrayBuilder |
JsonArrayBuilder.add(JsonValue value)
Adds the specified value to the array that is being built.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value)
Associates the specified value with the specified name in the
JSON object that is being built.
|
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 with in the current object context.
|
Comments to : [email protected]
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.