Object of type frozendict is not JSON serializable
wjmelements opened this issue · 2 comments
wjmelements commented
It seems the easiest way to accomplish this functionality without a custom serializer would be to subclass dict
and call dict.__init__
in the frozendict __init__
.
nblumoe commented
Until we get a way to serialise frozendict, is there a simple way to turn the frozendict into a normal dict?
This would be a workaround for the problem at hand, allowing to at least store it as a normal dict.
nblumoe commented
An unfreeze function can be found in this open PR: https://github.com/slezica/python-frozendict/pull/20/files