Class JSONArray
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.jooq.tools.json.JSONArray
- All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection
Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be
removed without replacement. Please use any other JSON parser,
instead - e.g. Jackson.
A JSON array. JSONObject supports java.util.List interface.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs an empty JSONArray.Deprecated, for removal: This API element is subject to removal in a future version.Constructs a JSONArray containing the elements of the specified collection, in the order they are returned by the collection's iterator. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoJSONString(List<?> list) Deprecated, for removal: This API element is subject to removal in a future version.Convert a list to JSON text.toString()Deprecated, for removal: This API element is subject to removal in a future version.static voidwriteJSONString(List<?> list, Writer out) Deprecated, for removal: This API element is subject to removal in a future version.Encode a list into JSON text and write it to out.Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAllMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
JSONArray
public JSONArray()Deprecated, for removal: This API element is subject to removal in a future version.Constructs an empty JSONArray. -
JSONArray
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a JSONArray containing the elements of the specified collection, in the order they are returned by the collection's iterator.- Parameters:
c- the collection whose elements are to be placed into this JSONArray
-
-
Method Details
-
writeJSONString
Deprecated, for removal: This API element is subject to removal in a future version.Encode a list into JSON text and write it to out.- Throws:
IOException- See Also:
-
toJSONString
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classAbstractCollection
-