Skip to content
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

Custom JSON encoder #521

Open
janrito opened this issue Jan 20, 2023 · 1 comment
Open

Custom JSON encoder #521

janrito opened this issue Jan 20, 2023 · 1 comment

Comments

@janrito
Copy link

janrito commented Jan 20, 2023

It would be nice if we could specify a custom encoder (and decoder) for types that will need extra deserialisation – e.g., sets, enums or sparse matrices – or even project-specific types

@rsyring
Copy link

rsyring commented Jan 22, 2024

I would also like to see this possibility. I suggest (#612) using a method on Database so it can be easily subclassed. Another option would be to pass in callables to Database() for json serialization and deserialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants