Module org.jooq

Class JSONArray

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection

@Deprecated(forRemoval=true) public class JSONArray extends ArrayList
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:
  • Constructor Details

    • JSONArray

      public JSONArray()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs an empty JSONArray.
    • JSONArray

      public JSONArray(Collection c)
      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

      public static void writeJSONString(List<?> list, Writer out) throws IOException
      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

      public static String toJSONString(List<?> list)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convert a list to JSON text. The result is a JSON array.
      Returns:
      JSON text, or "null" if list is null.
      See Also:
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class AbstractCollection