jq

jq is a lightweight and flexible command-line JSON processor. Curl some JSON from an API and then pipe to jq to query it