Hi,
I can serialize the whole diagram right now using the following code in js:
const jsonData = diagram.saveDiagram();
But my need is to
serialize a particular node (all it sproperties as i am in a drawing mode) and a connector of a diagram, something like
diagram.nodes[0].saveNode().
I have tried to do it like this:
const jsonData = JSON.stringify(diagram.nodes[0]);
const jsonData = JSON.stringify(diagram.connectors[0]);
But I have a js error:
Uncaught TypeError: Converting circular structure to JSON
--> starting at object with constructor 't'
| property 'properties' -> object with constructor 'Object'
| property 'shape' -> object with constructor 't'
--- property 'parentObj' closes the circle
at JSON.stringify (<anonymous>)
Thnaks for your help,
regards,
Laurent