Debugging nested dicts and high-dim arrays is a nightmare using print
something like
>>> d = { "a":1, "b":[1,2,3] }
>>> import json
>>> print( json.dumps(d, indent=2) )
{
"a": 1,
"b": [
1,
2,
3,
]
} >>> d = { "a":1, "b":[1,2,3] }
>>> d["d"] = d
>>> import pprint
>>> pprint.pprint(d)
{'a': 1, 'b': [1, 2, 3], 'd': <Recursion on dict with id=4516761856>}