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, spliterator, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll
finalize, getClass, notify, notifyAll, wait, wait, wait
add, 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, toArray
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-2021 Potix Corporation. All Rights Reserved.