public class JSON
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue() |
double |
doubleValue() |
JSON |
get(int index) |
JSON |
get(java.lang.String key) |
int |
intValue() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isString() |
boolean |
isUndefined() |
java.util.Set<java.lang.String> |
keySet() |
long |
longValue() |
static JSON |
parse(java.lang.String text) |
static java.lang.String |
stringify(java.lang.Object obj) |
JSON[] |
toArray() |
java.lang.String |
toString() |
public JSON get(java.lang.String key) throws JSONException
JSONExceptionpublic java.util.Set<java.lang.String> keySet()
throws JSONException
JSONExceptionpublic JSON get(int index) throws JSONException
JSONExceptionpublic JSON[] toArray() throws JSONException
JSONExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean booleanValue()
public int intValue()
throws JSONException
JSONExceptionpublic long longValue()
throws JSONException
JSONExceptionpublic double doubleValue()
throws JSONException
JSONExceptionpublic boolean isUndefined()
public boolean isNull()
public boolean isBoolean()
public boolean isString()
public boolean isNumber()
public boolean isObject()
public boolean isArray()
public static JSON parse(java.lang.String text) throws JSONException
JSONExceptionpublic static java.lang.String stringify(java.lang.Object obj)
throws JSONException
JSONException