Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Problem with toJson method

$
0
0

@suhl5469 wrote:

Can anyone help me with why myDiagram.model.toJson would return the following?....

function (a){void 0===a&&(a=this.constructor===M?"go.Model":this.constructor===V?"go.GraphLinksModel":this.constructor===ng?"go.TreeModel":z.kf(this));return'{ "class": '+this.quote(a)+this.Bn()+this.gB()+"}"}

rather than a json representation of my model. I get this regardless of what I specifically have in the model.

var jsonte = myDiagram.model.toJson;
console.log(jsonte);

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles