public class JSONArray extends ArrayList implements List, JSONAware, JSONStreamAware
modCount| Constructor and Description |
|---|
JSONArray() |
| Modifier and Type | Method and Description |
|---|---|
String |
toJSONString()
Returns a JSON string representation of this list.
|
static String |
toJSONString(List list)
Convert a list to JSON text.
|
String |
toString()
Returns a string representation of this list.
|
static void |
writeJSONString(List list,
Writer out)
Encode a list into JSON text and write it to out.
|
void |
writeJSONString(Writer out)
Writes this array to the specified output writer.
|
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, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic static void writeJSONString(List list, Writer out) throws IOException
JSONStreamAware or a JSONAware,
JSONStreamAware and JSONAware specific
behaviours will be ignored at this top level.list - the list (null permitted).out - the output writer (null not permitted).IOException - if there is an I/O problem.JSONValue.writeJSONString(Object, Writer)public void writeJSONString(Writer out) throws IOException
writeJSONString in interface JSONStreamAwareout - the output writer (null not permitted).IOException - if there is an I/O problem.public static String toJSONString(List list)
JSONAware, JSONAware specific
behaviours will be omitted at this top level.list - the list (null permitted).JSONValue.toJSONString(Object)public String toJSONString()
toJSONString in interface JSONAwarepublic String toString()
toString in class AbstractCollectionCopyright © 2001–2017 JFree.org. All rights reserved.