|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Object>
net.minidev.json.JSONArray
public class JSONArray
A JSON array. JSONObject supports java.util.List interface.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
JSONArray()
|
|
| Method Summary | |
|---|---|
void |
merge(Object o2)
|
String |
toJSONString()
Explicitely Serialize Object as JSon String |
String |
toJSONString(JSONStyle compression)
|
static String |
toJSONString(List<? extends Object> list)
|
static String |
toJSONString(List<? extends Object> list,
JSONStyle compression)
Convert a list to JSON text. |
String |
toString()
Override natif toStirng() |
String |
toString(JSONStyle compression)
JSONAwareEx inferface |
void |
writeJSONString(Appendable out)
write JSON string to out. |
void |
writeJSONString(Appendable out,
JSONStyle compression)
write JSON string to out. |
static void |
writeJSONString(Iterable<? extends Object> list,
Appendable out,
JSONStyle compression)
Encode a list into JSON text and write it to out. |
static void |
writeJSONString(List<? extends Object> list,
Appendable out)
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Constructor Detail |
|---|
public JSONArray()
| Method Detail |
|---|
public static String toJSONString(List<? extends Object> list)
public static String toJSONString(List<? extends Object> list,
JSONStyle compression)
list - compression - Indicate compression level
JSONValue.toJSONString(Object)
public static void writeJSONString(Iterable<? extends Object> list,
Appendable out,
JSONStyle compression)
throws IOException
list - out -
IOExceptionJSONValue.writeJSONString(Object, Appendable)
public static void writeJSONString(List<? extends Object> list,
Appendable out)
throws IOException
IOExceptionpublic void merge(Object o2)
public String toJSONString()
toJSONString in interface JSONAwarepublic String toJSONString(JSONStyle compression)
toJSONString in interface JSONAwareExpublic String toString()
toString in class AbstractCollection<Object>public String toString(JSONStyle compression)
compression - compression param
public void writeJSONString(Appendable out)
throws IOException
JSONStreamAware
writeJSONString in interface JSONStreamAwareIOException
public void writeJSONString(Appendable out,
JSONStyle compression)
throws IOException
JSONStreamAwareEx
writeJSONString in interface JSONStreamAwareExIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||