public class JSONArray extends ArrayList<Object> implements List<Object>, JSONAwareEx, JSONStreamAwareEx
modCount| Constructor and Description |
|---|
JSONArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
merge(Object o2) |
String |
toJSONString()
Explicitely Serialize Object as JSon String
|
String |
toJSONString(JSONStyle compression) |
static String |
toJSONString(List<? extends Object> list) |
static String |
toJSONString(List<? extends Object> list,
JSONStyle compression)
Convert a list to JSON text.
|
String |
toString()
Override natif toStirng()
|
String |
toString(JSONStyle compression)
JSONAwareEx inferface
|
void |
writeJSONString(Appendable out)
write JSON string to out.
|
void |
writeJSONString(Appendable out,
JSONStyle compression)
write JSON string to out.
|
static void |
writeJSONString(Iterable<? extends Object> list,
Appendable out,
JSONStyle compression)
Encode a list into JSON text and write it to out.
|
static void |
writeJSONString(List<? extends Object> list,
Appendable 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 String toJSONString(List<? extends Object> list, JSONStyle compression)
list - compression - Indicate compression levelJSONValue.toJSONString(Object)public static void writeJSONString(Iterable<? extends Object> list, Appendable out, JSONStyle compression) throws IOException
list - out - IOExceptionJSONValue.writeJSONString(Object, Appendable)public static void writeJSONString(List<? extends Object> list, Appendable out) throws IOException
IOExceptionpublic void merge(Object o2)
public String toJSONString()
toJSONString in interface JSONAwarepublic String toJSONString(JSONStyle compression)
toJSONString in interface JSONAwareExpublic String toString()
toString in class AbstractCollection<Object>public String toString(JSONStyle compression)
compression - compression parampublic void writeJSONString(Appendable out) throws IOException
JSONStreamAwarewriteJSONString in interface JSONStreamAwareIOExceptionpublic void writeJSONString(Appendable out, JSONStyle compression) throws IOException
JSONStreamAwareExwriteJSONString in interface JSONStreamAwareExIOExceptionCopyright © 2015 Chemouni Uriel. All rights reserved.