import multiprocessing, json
class JSONEncoderWithDictProxy(json.JSONEncoder):
def default(self, o):
if isinstance(o, multiprocessing.managers.DictProxy):
return dict(o)
return json.JSONEncoder.default(self, o)
json.dumps(your_nested_d, cls=JSONEncoderWithDictProxy)