Is it possible to read/parse the JSON data from the API using javascript? I only need specific values from the JSON data(from API).
After that, I have to use the result of JSON values in GoJS to create the architecture.
What does this have to do with GoJS? I assume you know about JSON.parse() - JavaScript | MDN
Thanks,
What I mean is, To get the specific values from JSON data I wrote a JQuery program where I bought the JSON data from API and I got the output for JSON data in text format. Where I need to use this data in the textblock i.e; (go.TextBlock,new go.Binding(“text”, “text”)) to use the “text” in GOJS architecture.
The idea is that the model is a bunch of JavaScript objects in memory. Data binding tries to keep some GraphObject properties in sync with object data properties.
Rendering to JSON-formatted text only happens when saving the model, and parsing the JSON-formatted text only happens when loading the model.
Have you read?
https://gojs.net/latest/intro/usingModels.html
https://gojs.net/latest/intro/dataBinding.html
You have to make sure each node data object and each link data object has all of the properties on them that your app needs. And no more. Those property values need to be JSON-serializable if you want to use Model.toJson and Model.fromJson.