map

fun <K, V> map(transform: (String, JSONData) -> Pair<K, V>): Map<K, V>

Transform the fields of this JSONObject into a Map with the keys of the map being the transformed keys of this JSONObject and the values of the map being the corresponding transformed values of this JSONObject.