I use Web App Builder and I would like to know if there is a method to export the contents of a webmap to json. It is possible to open a webmap (json) like this :
but I have found nothing to export the webmap to json.
I tried the following method but it only records what is visible on the map.
var = Web_Map_as_JSON JSON.toJson (printTask._getPrintDefinition (this.map, params));
This method does not save everything in the toc and not visible on the map.