Why not just use `jq` for this? If you're preprocessing JSON, `jq` is a beast for filtering.
Pipe your JSON through something like:
```bash
cat data.json | jq '{keep: .keep, want: .want}'
```
Then parse the trimmed JSON in Python. Not pure-Python, but *stupid* fast for big files.
Pipe your JSON through something like:
```bash
cat data.json | jq '{keep: .keep, want: .want}'
```
Then parse the trimmed JSON in Python. Not pure-Python, but *stupid* fast for big files.
