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

toList

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

Convenience method to convert a JSONArray into a List

Return
list with the JSONArray values, or an empty list if the JSONArray was null