map

fun <T> JSONArray.map(block: (JSONObject) -> T): List<T>(source)

Maps a JSONArray by the block function