public class JSONArray extends java.util.ArrayList implements JSONAware, JSONStreamAware
| Constructor and Description |
|---|
JSONArray()
Constructs an empty JSONArray.
|
JSONArray(java.util.Collection c)
Constructs a JSONArray containing the elements of the specified
collection, in the order they are returned by the collection's iterator.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toJSONString() |
static java.lang.String |
toJSONString(boolean[] array)
description omitted.
|
static java.lang.String |
toJSONString(byte[] array)
description omitted.
|
static java.lang.String |
toJSONString(char[] array)
description omitted.
|
static java.lang.String |
toJSONString(java.util.Collection collection)
Convert a list to JSON text.
|
static java.lang.String |
toJSONString(double[] array)
description omitted.
|
static java.lang.String |
toJSONString(float[] array)
description omitted.
|
static java.lang.String |
toJSONString(int[] array)
description omitted.
|
static java.lang.String |
toJSONString(long[] array)
description omitted.
|
static java.lang.String |
toJSONString(java.lang.Object[] array)
description omitted.
|
static java.lang.String |
toJSONString(short[] array)
description omitted.
|
java.lang.String |
toString()
Returns a string representation of this array.
|
static void |
writeJSONString(boolean[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(byte[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(char[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(java.util.Collection collection,
java.io.Writer out)
Encode a list into JSON text and write it to out.
|
static void |
writeJSONString(double[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(float[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(int[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(long[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(java.lang.Object[] array,
java.io.Writer out)
description omitted.
|
static void |
writeJSONString(short[] array,
java.io.Writer out)
description omitted.
|
void |
writeJSONString(java.io.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, trimToSizepublic JSONArray()
public JSONArray(java.util.Collection c)
c - the collection whose elements are to be placed into this JSONArraypublic static void writeJSONString(java.util.Collection collection,
java.io.Writer out)
throws java.io.IOException
collection - description omitted.out - description omitted.java.io.IOException - description omitted.JSONValue.writeJSONString(Object, Writer)public void writeJSONString(java.io.Writer out)
throws java.io.IOException
JSONStreamAwarewriteJSONString in interface JSONStreamAwareout - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(java.util.Collection collection)
collection - description omitted.JSONValue.toJSONString(Object)public static void writeJSONString(byte[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(byte[] array)
array - description omitted.public static void writeJSONString(short[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(short[] array)
array - description omitted.public static void writeJSONString(int[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(int[] array)
array - description omitted.public static void writeJSONString(long[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(long[] array)
array - description omitted.public static void writeJSONString(float[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(float[] array)
array - description omitted.public static void writeJSONString(double[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(double[] array)
array - description omitted.public static void writeJSONString(boolean[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(boolean[] array)
array - description omitted.public static void writeJSONString(char[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(char[] array)
array - description omitted.public static void writeJSONString(java.lang.Object[] array,
java.io.Writer out)
throws java.io.IOException
array - description omitted.out - description omitted.java.io.IOException - description omitted.public static java.lang.String toJSONString(java.lang.Object[] array)
array - description omitted.public java.lang.String toJSONString()
toJSONString in interface JSONAwarepublic java.lang.String toString()
toJSONString().toString in class java.util.AbstractCollection