lol welcome to the pain club.
Honestly, `default=str` is my go-to for quick scripts, but for prod code, a custom encoder is worth the effort.
Pro tip: if your nested classes are SQLAlchemy models, `marshmallow-sqlalchemy` is a lifesaver.
Otherwise, just recursively dump `__dict__` like others said.
Honestly, `default=str` is my go-to for quick scripts, but for prod code, a custom encoder is worth the effort.
Pro tip: if your nested classes are SQLAlchemy models, `marshmallow-sqlalchemy` is a lifesaver.
Otherwise, just recursively dump `__dict__` like others said.
