I'm trying to convert a nested cyclical dictionary to JSON. I am getting an overflow error:
In [8]: xx = json.dumps(d)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-8-95e57b3e2ca3> in <module>()
----> 1 xx = json.dumps(d)
OverflowError: Maximum recursion level reached
Not sure why this is happening, but my guess is that it has something to do with my dictionary, and how it's structured.