Pipe JSON output to jq for filtering.
Section: Config Files and Scripting
Parse JSON with jq
bash
bash
curl -s https://api.github.com/repos/curl/curl | jq '.stargazers_count'Explanation
curl focuses on transfer; pair it with `jq` for JSON processing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Config Files and Scripting
Example curl config file
Store headers, auth, and URL in a reusable config file.
Send request body from a file
Post the contents of a local file as the request body.