public class JSONArray extends ArrayList implements List, JSONAware, JSONStreamAware
modCount
Constructor and Description |
---|
JSONArray() |
Modifier and Type | Method and Description |
---|---|
String |
toJSONString() |
static String |
toJSONString(List list)
Convert a list to JSON text.
|
String |
toString() |
static void |
writeJSONString(List list,
Writer out)
Encode a list into JSON text and write it to out.
|
void |
writeJSONString(Writer out)
write JSON string 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, trimToSize
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public static void writeJSONString(List list, Writer out) throws IOException
list
- out
- IOException
JSONValue.writeJSONString(Object, Writer)
public void writeJSONString(Writer out) throws IOException
JSONStreamAware
writeJSONString
in interface JSONStreamAware
IOException
public static String toJSONString(List list)
list
- JSONValue.toJSONString(Object)
public String toJSONString()
toJSONString
in interface JSONAware
public String toString()
toString
in class AbstractCollection
Copyright © 2015. All rights reserved.