@Deprecated public class JSONArray extends Object
| Constructor and Description |
|---|
JSONArray()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object ele)
Deprecated.
add item.
|
void |
addAll(Collection<?> c)
Deprecated.
add items.
|
void |
addAll(Object[] eles)
Deprecated.
add items.
|
Object |
get(int index)
Deprecated.
get.
|
JSONArray |
getArray(int index)
Deprecated.
get JSONArray value.
|
boolean |
getBoolean(int index,
boolean def)
Deprecated.
get boolean value.
|
double |
getDouble(int index,
double def)
Deprecated.
get double value.
|
float |
getFloat(int index,
float def)
Deprecated.
get float value.
|
int |
getInt(int index,
int def)
Deprecated.
get int value.
|
long |
getLong(int index,
long def)
Deprecated.
get long value.
|
JSONObject |
getObject(int index)
Deprecated.
get JSONObject value.
|
String |
getString(int index)
Deprecated.
get string value.
|
int |
length()
Deprecated.
get array length.
|
void |
writeJSON(JSONConverter jc,
JSONWriter jb,
boolean writeClass)
Deprecated.
write json.
|
public Object get(int index)
index - index.public boolean getBoolean(int index,
boolean def)
index - index.def - default value.public int getInt(int index,
int def)
index - index.def - default value.public long getLong(int index,
long def)
index - index.def - default value.public float getFloat(int index,
float def)
index - index.def - default value.public double getDouble(int index,
double def)
index - index.def - default value.public String getString(int index)
index - index.public JSONArray getArray(int index)
index - index.public JSONObject getObject(int index)
index - index.public int length()
public void add(Object ele)
public void addAll(Object[] eles)
public void addAll(Collection<?> c)
public void writeJSON(JSONConverter jc, JSONWriter jb, boolean writeClass) throws IOException
jc - json converterjb - json builder.IOExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.