New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DotDict isn't JSON-serializable #341
Comments
The tricky thing about messing with JSON by, for example, modifying the default encoder, is that some libraries use their own custom encoders (or reinstantiate the default encoder) and therefore won't pick up the modifications. I guess the wishlist item would be for Python to think of |
So the TLDR here is that there is no internal-to- TypeError: Object of type 'dict' is not JSON serializable |
It makes sense. Perhaps as a convenience, we could add a |
We could also talk with the people from python json to add a |
DotDicts
feel like dicts, until you try to ship them as JSON:Results in the following error:
The text was updated successfully, but these errors were encountered: