[b]"Best way to JSON Python get all values for key? Need help!"[/b] or [b]"How to JSON Python get all values for k

18 Replies, 1101 Views

If you're lazy like me, just use `jq` from the command line:
```bash
echo 'your_json' | jq '.. | .a? // empty'
```
Not pure Python, but saves time. For Python, `jsonpath-ng` is solid too.

Messages In This Thread



Users browsing this thread: 1 Guest(s)