Thanks for all the tips! The `default=lambda o: o.__dict__` trick worked like a charm for debugging.
Still kinda wild that json.dumps doesn’t have a built-in "just try your best" mode, tho.
Quick Q: Anyone know why some objects serialize fine without __dict__? Like, why does it work sometimes and not others? Is there a hidden rule?
Still kinda wild that json.dumps doesn’t have a built-in "just try your best" mode, tho.
Quick Q: Anyone know why some objects serialize fine without __dict__? Like, why does it work sometimes and not others? Is there a hidden rule?
