public class JSONArray extends java.util.ArrayList implements java.util.List, JSONAware, JSONStreamAware
| Constructor and Description |
|---|
JSONArray() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toJSONString()
Returns a JSON string representation of this list.
|
static java.lang.String |
toJSONString(java.util.List list)
Convert a list to JSON text.
|
java.lang.String |
toString()
Returns a string representation of this list.
|
static void |
writeJSONString(java.util.List list,
java.io.Writer out)
Encode a list into JSON text and write it to out.
|
void |
writeJSONString(java.io.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, trimToSizefinalize, 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, toArraypublic JSONArray()
public static void writeJSONString(java.util.List list, java.io.Writer out) throws java.io.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).java.io.IOException - if there is an I/O problem.JSONValue.writeJSONString(Object, Writer)public void writeJSONString(java.io.Writer out) throws java.io.IOException
writeJSONString in interface JSONStreamAwareout - the output writer (null not permitted).java.io.IOException - if there is an I/O problem.public static java.lang.String toJSONString(java.util.List list)
JSONAware, JSONAware specific
behaviours will be omitted at this top level.list - the list (null permitted).JSONValue.toJSONString(Object)public java.lang.String toJSONString()
toJSONString in interface JSONAwarepublic java.lang.String toString()
toString in class java.util.AbstractCollection