How to use DumpJson?

I have found that many classes have a DumpJson function. However, I can't found any example about it. Is it used to store data and command? Or is it used to implement the undo/redo funcitonarity? If so, how to use DumJson? 

Kirill Gavrilov's picture

DumpJson() is not a part of any document-persistence mechanism, it is just an analog of toString() printing class properties in form of JSON structure.
This interface is unstable and should not be used in any persistence as it might be changed in next OCCT releases and it does not (and not supposed to) implement any versioning.

Currently, it is used by Inspector tool for dumping object properties into GUI.