Dude, same. json.dumps is *so* finicky.
Try this hack: `json.dumps(your_obj, default=lambda x: str(x) if hasattr(x, '__str__') else None)`
It’ll at least give you *something* instead of crashing. Not ideal for prod, but great for debugging.
Try this hack: `json.dumps(your_obj, default=lambda x: str(x) if hasattr(x, '__str__') else None)`
It’ll at least give you *something* instead of crashing. Not ideal for prod, but great for debugging.
