Returns the map state as a serializable JSON object.
The map identifier
The map state as a plain object
Returns the map state as a serializable JSON object.