For a funky approach, try `jsonobject`:
```python
from jsonobject import JsonObject
class Person(JsonObject):
name = StringProperty()
age = IntegerProperty()
data = Person(json.loads('{"name": "Sam", "age": 40}'))
```
It’s a bit niche but great for schema-heavy stuff.
```python
from jsonobject import JsonObject
class Person(JsonObject):
name = StringProperty()
age = IntegerProperty()
data = Person(json.loads('{"name": "Sam", "age": 40}'))
```
It’s a bit niche but great for schema-heavy stuff.
