public class JSONArray extends JSONComplex
[ "one", "two", "tree" ] is an array of 3 strings.| Constructor and Description |
|---|
JSONArray() |
JSONArray(Collection<JSONValue> contents) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
JSONValue |
get(int i)
Utility method, get an element at a specific position in the list.
|
List<JSONValue> |
getValue() |
int |
hashCode() |
protected String |
render(boolean aPretty,
String aIndent)
Convert the JSON value into a string representation (JSON representation).
|
int |
size() |
Object |
strip()
Remove all JSON information.
|
String |
toString() |
public JSONArray()
public JSONArray(Collection<JSONValue> contents)
public int size()
size in class JSONComplexpublic JSONValue get(int i)
i - Index of the element to return.IndexOutOfBoundsException - When there is no element at the specified position.protected String render(boolean aPretty, String aIndent)
JSONValueCopyright © 2012. All Rights Reserved.