lol yeah json.dumps is picky af.
If you don’t wanna write a full encoder, just override `__str__` or `__repr__` in your class to return something json-friendly. Then do `json.dumps(str(your_obj))`.
Not elegant, but hey, it’s a debug dump—who cares?
If you don’t wanna write a full encoder, just override `__str__` or `__repr__` in your class to return something json-friendly. Then do `json.dumps(str(your_obj))`.
Not elegant, but hey, it’s a debug dump—who cares?
