Re:Don't Pickle Your Data
by bobbylarrybobby on Thursday August 11, 2022 @09:25PM
(#32433834)
The real question is why doesn't Python have something like a class decorator`@json.interchangeable` that you can apply to a class -- maybe dataclasses only? -- to have json (de)serialization be only three lines of code (or less).
[ Parent
| on HN ]
There is dataclasses-json which does this