sqlite-utils icon indicating copy to clipboard operation
sqlite-utils copied to clipboard

Custom JSON encoder

Open janrito opened this issue 3 years ago • 1 comments

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

janrito avatar Jan 20 '23 09:01 janrito

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.

rsyring avatar Jan 22 '24 04:01 rsyring