array

open fun array(): JSONWriter

Begin appending a new array. All values until the balancing endArray will be appended to this array. The endArray method must be called to mark the array's end.

Return

this

Throws

If the nesting is too deep, or if the object is started in the wrong place (for example as a key or after the end of the outermost array or object).