Loads the node from a JSON object.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
protected void loadFromJson ( |
A JsonPersistContext object providing contextual information about the serialization process and helper serialization methods.
By default, all components of a CompositeNode are saved in the JSON document along with their associated data. This will lead to wasted space if the instances of a derived class are built upon the same hierarchy of components and expose only a few properties corresponding to component attributes. The recommended approach of serializing such classes is to override serializeComponents and return false to stop the built-in serialization of components, and save / load the node properties from saveToJson / loadFromJson overrides.
JDiagram Programmer's Guide | © 2025 MindFusion |