Now it is possible to save the map to a json file