🔧
Languages & Build

jq

Command-line JSON processor — parse APIs and config files

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

jq filters and transforms JSON — essential for parsing API responses in shell scripts.

📥

Step 01

Install jq

(01)Install jq

Linux
1sudo apt-get install -y jq
⚙️

Step 02

Configure jq

(01)Configure jq

Linux
1echo '{"name":"dev"}' | jq '.name'
2curl -s api.github.com/repos/user/repo | jq '.stargazers_count'

Step 03

Verify

(01)Verify installation

Linux
1jq --version