public class JSONArray extends java.util.LinkedList<java.lang.Object> implements java.util.List<java.lang.Object>, JSONAware
Constructor and Description |
---|
JSONArray() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJSONString()
Encodes this object to a JSON string.
|
static java.lang.String |
toJSONString(boolean[] ary)
Convert a boolean array to JSON text.
|
static java.lang.String |
toJSONString(byte[] ary)
Convert a byte array to JSON text.
|
static java.lang.String |
toJSONString(char[] ary)
Convert a char array to JSON text.
|
static java.lang.String |
toJSONString(java.util.Collection collection)
Convert a list to JSON text.
|
static java.lang.String |
toJSONString(double[] ary)
Convert a double array to JSON text.
|
static java.lang.String |
toJSONString(float[] ary)
Convert a float array to JSON text.
|
static java.lang.String |
toJSONString(int[] ary)
Convert an integer array to JSON text.
|
static java.lang.String |
toJSONString(long[] ary)
Convert a long array to JSON text.
|
static java.lang.String |
toJSONString(java.lang.Object[] ary)
Convert an object array to JSON text.
|
static java.lang.String |
toJSONString(short[] ary)
Convert a short array to JSON text.
|
java.lang.String |
toString()
Encodes this object to a JSON string.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll
finalize, getClass, notify, notifyAll, wait, wait, wait
public static java.lang.String toJSONString(java.util.Collection collection)
collection
- JSONValue.toJSONString(Object)
public static java.lang.String toJSONString(java.lang.Object[] ary)
patched by tomyeh
public static java.lang.String toJSONString(int[] ary)
patched by tomyeh
public static java.lang.String toJSONString(long[] ary)
patched by tomyeh
public static java.lang.String toJSONString(short[] ary)
patched by tomyeh
public static java.lang.String toJSONString(float[] ary)
patched by tomyeh
public static java.lang.String toJSONString(double[] ary)
patched by tomyeh
public static java.lang.String toJSONString(byte[] ary)
patched by tomyeh
public static java.lang.String toJSONString(boolean[] ary)
patched by tomyeh
public static java.lang.String toJSONString(char[] ary)
patched by tomyeh
public java.lang.String toJSONString()
toString()
.toJSONString
in interface JSONAware
public java.lang.String toString()
toJSONString()
.toString
in class java.util.AbstractCollection<java.lang.Object>
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.