The scopetor2json function#

Aliases#

halerium.core.serialization.scopetor2json
scopetor2json(scopetor, strict_self_containment=True)#

creates a JSON-compatible specification dict out of a scopetor.

The preferred way for the user to do this is to call the .dump_dict method of a Graph, Entity, Variable or StaticVariable.

The strict_self_containment keyword governs the behavior for not self-contained scopetors If True the scopetor has to be self-contained. If False not self-contained parts are left out and will be set to None in the json.