public class JSONArray extends ArrayList
modCount| Constructor and Description |
|---|
JSONArray()
Constructs an empty JSONArray.
|
JSONArray(Collection c)
Constructs a JSONArray containing the elements of the specified
collection, in the order they are returned by the collection's iterator.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
toJSONString(List<?> list)
Convert a list to JSON text.
|
static void |
writeJSONString(List<?> list,
Writer out)
Encode a list into JSON text and write it to out.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic JSONArray()
public JSONArray(Collection c)
c - the collection whose elements are to be placed into this JSONArraypublic static void writeJSONString(List<?> list, Writer out) throws IOException
IOExceptionJSONValue.writeJSONString(Object, Writer)public static String toJSONString(List<?> list)
JSONValue.toJSONString(Object)Copyright © 2014. All Rights Reserved.