Encoding hell, right? When you json read json file, always assume the worst.
Try this:
```python
with open('data.json', 'rb') as f:
raw = f.read().decode('utf-8-sig') # kills BOM if present
data = json.loads(raw)
```
BOM chars are sneaky and will wreck your day. This’ll strip ’em out.
Try this:
```python
with open('data.json', 'rb') as f:
raw = f.read().decode('utf-8-sig') # kills BOM if present
data = json.loads(raw)
```
BOM chars are sneaky and will wreck your day. This’ll strip ’em out.
