Extract data from diagram model

Hi @walter ,

How can i get the data from model in the JSON format.

Here, initially i have initialized diagram model like this:

myDiagram.model = new go.GraphLinksModel(data);

now, i want to get back the “data in JSON format” from the myDiagram.model. (myDiagram.model has modified meanwhile).

Thanks.

https://gojs.net/latest/intro/usingModels.html#SavingAndLoadingModels