toMap

An extension function to convert a JSONObject to a map.

Return

a map representation of the JSONObject