Ah, the classic Python json.dumps embedded object struggle! Been there.
The issue is that json.dumps doesn't know how to handle custom objects by default. You could try defining a `default` method in your object's class to return a dict representation.
Or, if you're lazy (like me), check out the `jsonpickle` library—it serializes almost anything, including nested stuff.
The issue is that json.dumps doesn't know how to handle custom objects by default. You could try defining a `default` method in your object's class to return a dict representation.
Or, if you're lazy (like me), check out the `jsonpickle` library—it serializes almost anything, including nested stuff.
