Constructor and Description |
---|
JsonArray() |
Modifier and Type | Method and Description |
---|---|
void |
add(boolean value) |
void |
add(double value) |
void |
add(JsonValue value) |
void |
add(long value) |
void |
add(String value) |
JsonArray |
asArray() |
JsonBoolean |
asBoolean() |
JsonNumber |
asNumber() |
JsonObject |
asObject() |
JsonString |
asString() |
JsonArray |
copyDeeply()
Makes a full copy of the JSON data structure.
|
static JsonArray |
create() |
JsonValue |
get(int index) |
int |
getLength() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isString() |
static JsonArray |
parse(Reader reader) |
void |
write(Writer writer) |
public static JsonArray create()
public static JsonArray parse(Reader reader) throws IOException, JsonException
IOException
JsonException
public void add(boolean value)
public void add(double value)
public void add(JsonValue value)
public void add(long value)
public void add(String value)
public JsonBoolean asBoolean()
public JsonNumber asNumber()
public JsonObject asObject()
public JsonString asString()
public JsonArray copyDeeply()
JsonValue
copyDeeply
in interface JsonValue
public JsonValue get(int index)
public int getLength()
public void write(Writer writer) throws IOException
write
in interface JsonValue
IOException
Copyright © 2018. All rights reserved.