| Package | Description |
|---|---|
| asia.redact.bracket.properties.json |
| Modifier and Type | Class and Description |
|---|---|
class |
JsonArray |
(package private) class |
JsonLiteral |
(package private) class |
JsonNumber |
class |
JsonObject |
(package private) class |
JsonString |
| Modifier and Type | Field and Description |
|---|---|
static JsonValue |
Json.FALSE
Represents the JSON literal
false. |
static JsonValue |
Json.NULL
Represents the JSON literal
null. |
static JsonValue |
Json.TRUE
Represents the JSON literal
true. |
private JsonValue |
JsonObject.Member.value |
protected JsonValue |
Json.DefaultHandler.value |
| Modifier and Type | Field and Description |
|---|---|
private List<JsonValue> |
JsonObject.values |
private List<JsonValue> |
JsonArray.values |
| Modifier and Type | Method and Description |
|---|---|
static JsonValue |
Json.array()
Creates a new empty JsonArray.
|
JsonValue |
JsonArray.get(int index)
Returns the value of the element at the specified position in this array.
|
JsonValue |
JsonObject.get(String name)
Returns the value of the member with the specified name in this object.
|
JsonValue |
JsonObject.Member.getValue()
Returns the value of this member.
|
(package private) JsonValue |
Json.DefaultHandler.getValue() |
static JsonValue |
Json.parse(Reader reader)
Reads the entire input from the given reader and parses it as JSON.
|
static JsonValue |
Json.parse(String string)
Parses the given input string as JSON.
|
static JsonValue |
Json.value(boolean value)
Returns a JsonValue instance that represents the given
boolean value. |
static JsonValue |
Json.value(double value)
Returns a JsonValue instance that represents the given
double value. |
static JsonValue |
Json.value(float value)
Returns a JsonValue instance that represents the given
float value. |
static JsonValue |
Json.value(int value)
Returns a JsonValue instance that represents the given
int value. |
static JsonValue |
Json.value(long value)
Returns a JsonValue instance that represents the given
long value. |
static JsonValue |
Json.value(String string)
Returns a JsonValue instance that represents the given string.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<JsonValue> |
JsonArray.iterator()
Returns an iterator over the values of this array in document order.
|
List<JsonValue> |
JsonArray.values()
Returns a list of the values in this array in document order.
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
JsonArray.add(JsonValue value)
Appends the specified JSON value to the end of this array.
|
JsonObject |
JsonObject.add(String name,
JsonValue value)
Appends a new member to the end of this object, with the specified name and the specified JSON
value.
|
JsonArray |
JsonArray.set(int index,
JsonValue value)
Replaces the element at the specified position in this array with the specified JSON value.
|
JsonObject |
JsonObject.set(String name,
JsonValue value)
Sets the value of the member with the specified name to the specified JSON value.
|
| Constructor and Description |
|---|
Member(String name,
JsonValue value) |
Copyright © 2011–2016 David R. Smith. All rights reserved.