map

fun JSONArray.map(transform: (Any?) -> Any?): List<Any?>

Returns a list containing the results of applying the given transform function to each element in the original collection.