jq is the swiss army knife for dealing with JSON files. If you can install it use that.

However I often find myself in situations where, for whatever technical, legal, or just plain stupid reason I cannot install it.

If you find yourself in similar situation, here are a few tools that might help you.