slezica/python-frozendict

Object of type frozendict is not JSON serializable

wjmelements opened this issue · 2 comments

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__.

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.

An unfreeze function can be found in this open PR: https://github.com/slezica/python-frozendict/pull/20/files