How do I export and then import a web map's json with python? I took a quick look at the GIS module... but I did not see the right call.
Solved! Go to Solution.
For exporting, use Item.get_data().
For importing? As @DanPatterson 's linked post mentions, you'll probably want to use the json module to make sure your JSON is formatted properly. To pass your modified JSON back to the map, just use Item.update(item_properties={'text':your_JSON_obj}).
related links using the json module
Solved: Can't create a valid Web Map from a JSON definitio... - Esri Community
For exporting, use Item.get_data().
For importing? As @DanPatterson 's linked post mentions, you'll probably want to use the json module to make sure your JSON is formatted properly. To pass your modified JSON back to the map, just use Item.update(item_properties={'text':your_JSON_obj}).
@jcarlson thanks! that did the trick