asSequence
fun JSONArray.asSequence(): Sequence<Any>
toList
fun <T> JSONArray?.toList(): List<T>
Convenience method to convert a JSONArray into a List