I have a DictProxy object created using multiprocessing.Manager().dict() to support concurrency. At the end of the run, I need to serialize the dict to JSON. But it's unclear how to convert the DictProxy to serializable dict object. When I tried it, I got:
TypeError: <DictProxy object, typeid 'dict' at 0x10a240ed0> is not JSON serializable
How can I fix this?