Is there a way to export the current map state as a JSON object, mostly named Web_Map_as_JSON. The JSON specification should be like this.
In other words, it would be convenient to have a function for the Map object, like myMap.Web_Map_as_JSON() that would provide the current state of the MAP.