json#

ansXpl.json()[source]#

Return a JSON representation of the tree or records.

Examples

>>> xpl.json()
{'name': 'FULL',
 'children': [{'name': 'DOFSBYNOD', 'size': 24},
 {'name': 'BACK', 'size': 336},
 {'name': 'STIFF', 'size': 120132},
 {'name': 'RHS', 'size': 1956},
 {'name': 'DIAGK', 'size': 1956},
 {'name': 'SCLK', 'size': 36},
 {'name': 'NODEEXT', 'size': 32},
 {'name': 'PCGDOFS', 'size': 984},
 {'name': 'BCDOFS', 'size': 984},
 {'name': 'BCVALUES', 'size': 20},
 {'name': 'MASS', 'size': 52020},
 {'name': 'DIAGM', 'size': 1236},
 {'name': 'NGPH', 'size': 6440}]}