# Class: com.pnfsoftware.jeb.util.encoding.json.JSONArray

A JSON array. JSONObject supports java.util.List interface.

## Constructor: JSONArray

Description: Constructs an empty JSONArray.

## Constructor: JSONArray
- parameter: `c`, type: `java.util.Collection`

Description: Constructs a JSONArray containing the elements of the specified collection, in the order they are returned by the collection's iterator.
parameter: c: the collection whose elements are to be placed into this JSONArray

## Method: toJSONString
- return type: `java.lang.String`


## Method: toString
- return type: `java.lang.String`

Description: Returns a string representation of this array. This is equivalent to calling [JSONArray#toJSONString()](JSONArray#toJSONString()).

## Method: writeJSONString
- parameter: `out`, type: `java.io.Writer`


## Static Method: toJSONString
- parameter: `collection`, type: `java.util.Collection`
- return type: `java.lang.String`

Description: Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
see also: org.json.simple.JSONValue#toJSONString(Object)
parameter: collection: 
return: JSON text, or "null" if list is null.

## Static Method: toJSONString
- parameter: `array`, type: `byte[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `short[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `int[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `long[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `float[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `double[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `boolean[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `char[]`
- return type: `java.lang.String`


## Static Method: toJSONString
- parameter: `array`, type: `java.lang.Object[]`
- return type: `java.lang.String`


## Static Method: writeJSONString
- parameter: `collection`, type: `java.util.Collection`
- parameter: `out`, type: `java.io.Writer`

Description: Encode a list into JSON text and write it to out. If this list is also a JSONStreamAware or a JSONAware, JSONStreamAware and JSONAware specific behaviours will be ignored at this top level.
see also: org.json.simple.JSONValue#writeJSONString(Object, Writer)
parameter: collection: 
parameter: out: 

## Static Method: writeJSONString
- parameter: `array`, type: `byte[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `short[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `int[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `long[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `float[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `double[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `boolean[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `char[]`
- parameter: `out`, type: `java.io.Writer`


## Static Method: writeJSONString
- parameter: `array`, type: `java.lang.Object[]`
- parameter: `out`, type: `java.io.Writer`


