a few of these answers are a bit outdated. There's a newer/better maintained python jq implmentation, https://github.com/mwilliamson/jq.py
pip install jq
The other one isn't well maintained anymore (it's old enough it assumes you'll be using python 2)