How to properly use python json_dump_obj for custom object serialization? or Why is python json_dump_

16 Replies, 1173 Views

OP here—thanks for all the replies!

Tried the `default=lambda o: o.__dict__` trick and it worked like a charm. Still weird that some attributes vanished, but turns out they were `@property` decorators.

Gonna check out `jsonpickle` and `pydantic` too. Y’all saved me hours of googling.

Cheers!

Messages In This Thread



Users browsing this thread: 1 Guest(s)