[Sqlalchemy-tickets] Issue #3040: association proxies are not json serializable (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
|
From: metagriffin <iss...@bi...> - 2014-05-02 22:22:17
|
New issue 3040: association proxies are not json serializable https://bitbucket.org/zzzeek/sqlalchemy/issue/3040/association-proxies-are-not-json metagriffin: this can be easily circumvented by simply casting them when needed, e.g. calling ``json.dumps(list(assoc_list))``. however, it would be great if these objects were directly serializable. the ORM instrumented objects, InstrumentedList, InstrumentedSet, and InstrumentedDict already achieve this because they respectively subclass list, set, and dict -- the ``json`` package handles them appropriately then. |