map

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

Maps a JSONArray by the block function