Hey! For parse json python, `json.loads()` is what you need for API responses.
Nested JSON? Try this:
```python
def extract_nested(data, keys):
for key in keys:
data = data[key]
return data
```
And +1 for `try-except`—don’t let bad JSON crash your script!
Nested JSON? Try this:
```python
def extract_nested(data, keys):
for key in keys:
data = data[key]
return data
```
And +1 for `try-except`—don’t let bad JSON crash your script!
