ijl / orjson

Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
Apache License 2.0
6.29k stars 215 forks source link

Feature Request: Extend Serialization Support for Custom Collection Types #533

Open yoch opened 4 days ago

yoch commented 4 days ago

Add support for serializing objects that implement collection-like interfaces, expanding beyond native list and dict to include:

This enhancement would enable more flexible serialization for complex data structures that mimic standard Python collections but are implemented differently, like (for example) SQLAlchemy's _AssociationList and _AssociationDict.