public class JSONArray extends ArrayList<Object> implements List<Object>, JSONAware, JSONStreamAware
modCount| Constructor and Description |
|---|
JSONArray() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addJSONString(List<Object> list,
StringBuilder sb) |
String |
toJSONString() |
static String |
toJSONString(List<Object> list)
Convert a list to JSON text.
|
String |
toString() |
static void |
writeJSONString(List<Object> 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, 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<Object> list, Writer out) throws IOException
list - out - IOExceptionJSONValue.writeJSONString(Object,
Writer)public void writeJSONString(Writer out) throws IOException
JSONStreamAwarewriteJSONString in interface JSONStreamAwareIOExceptionpublic static String toJSONString(List<Object> list)
list - JSONValue.toJSONString(Object)public static void addJSONString(List<Object> list, StringBuilder sb)
public String toJSONString()
toJSONString in interface JSONAwarepublic String toString()
toString in class AbstractCollection<Object>Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.