Yup, python json_dump_obj doesn’t know how to handle your class unless you tell it how.
Override `__json__` or use `json.JSONEncoder`. Here’s a quick example:
```python
class YourClass:
def __json__(self):
return {'attr1': self.attr1, 'attr2': self.attr2}
```
Or subclass `JSONEncoder` and pass it to `json.dumps()`.
Override `__json__` or use `json.JSONEncoder`. Here’s a quick example:
```python
class YourClass:
def __json__(self):
return {'attr1': self.attr1, 'attr2': self.attr2}
```
Or subclass `JSONEncoder` and pass it to `json.dumps()`.
