Reputation: 1
i am working on a project for developing Flow diagram using jointjs and i want to dynamically convert flow diagram to json and vise-versa also.I am new in this field so please help
Upvotes: 0
Views: 6113
Reputation: 336
A bit late with the answer but maybe someone else will find it useful.
JointJS provides graph.toJSON
and graph.fromJSON
which can be used for persistence or serialization.
var jsonString = JSON.stringify(graph.toJSON());
This is the documentation as a reference.
Upvotes: 0
Reputation: 374
You can use GoJs to convert JSON to Flow diagram. But I think you need to pay for the full version. Anyway you can use the trial version.
Refer: https://gojs.net/latest/samples/flowchart.html
Upvotes: 0