net.minidev.json
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, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll
public 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
- IOException
JSONValue.writeJSONString(Object, Appendable)
public static void writeJSONString(List<? extends Object> list, Appendable out) throws IOException
IOException
public void merge(Object o2)
public String toJSONString()
toJSONString
in interface JSONAware
public String toJSONString(JSONStyle compression)
toJSONString
in interface JSONAwareEx
public String toString()
toString
in class AbstractCollection<Object>
public String toString(JSONStyle compression)
compression
- compression parampublic void writeJSONString(Appendable out) throws IOException
JSONStreamAware
writeJSONString
in interface JSONStreamAware
IOException
public void writeJSONString(Appendable out, JSONStyle compression) throws IOException
JSONStreamAwareEx
writeJSONString
in interface JSONStreamAwareEx
IOException
Copyright © 2013 Chemouni Uriel. All Rights Reserved.