toList

fun JSONArray.toList(): List<Any?>

Returns a List containing all key-value pairs.