serialize()
Description
Serializes the diagram data into an array of JSON objects
Usage
serialize(): array;
Returns
The method returns an array of JSON objects for each item and link from Diagram
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
const data = diagram.data.serialize();
Related articles: Saving and restoring state