hey! for how to put json data into a dictionary python, here’s the deal:
- `json.loads()` for strings
- `json.load()` for files
example with a file:
```python
import json
with open('data.json') as f:
my_dict = json.load(f)
```
also, if you’re unsure about your json structure, print it out first to see what you’re working with.
- `json.loads()` for strings
- `json.load()` for files
example with a file:
```python
import json
with open('data.json') as f:
my_dict = json.load(f)
```
also, if you’re unsure about your json structure, print it out first to see what you’re working with.
