android-components / mozilla.components.support.ktx.android.org.json / org.json.JSONArray

Extensions for org.json.JSONArray

asSequence

fun JSONArray.asSequence(): Sequence<Any>

toList

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

Convenience method to convert a JSONArray into a List