Home > @jsplumbtoolkit/core > JsPlumbToolkit > toJSON
JsPlumbToolkit.toJSON() method
Helper method to allow JSON.stringify
to be called with an instance of the Toolkit as argument (JSON.stringify looks for a toJSON()
method on each object it is attempting to serialise). This method generates the same output as calling exportData()
.
Signature:
toJSON(): any;
Returns:
any