Package io.kjson

Class JSONArray

  • All Implemented Interfaces:
    io.kjson.JSONStructure , io.kjson.JSONValue , kotlin.collections.Collection , kotlin.collections.Iterable , kotlin.collections.List

    
    public final class JSONArray
     implements JSONStructure<Int>, List<JSONValue>
                        

    A JSON array. As allowed by the JSON specification, array members may be primitive types, objects, other arrays or null.

    A JSONArray is immutable; instances may be created dynamically using the build function and the Builder class.

    The JSONArray class implements the Kotlin List interface; all the functions of that interface are available, including indexed access, iteration over the list contents and comparison with another list.