What's the best way to read in a JSON file using Python? or How do I properly read in a JSON file wit

18 Replies, 1579 Views

If you’re working with nested json, `json.load()` + a recursive function or `jsonpath-ng` can save you headaches.

For python read in json file, your method works, but tools like `jq` (command line) are handy for quick filtering.

```bash
cat data.json | jq '.key.subkey'
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)