jq Tutorial: Parse JSON in the Linux Terminal (curl + GitHub API Demo)

Publicado em: 18 Julho 2026
no canal de: TechTooniya
2
0

Learn how to parse JSON in the Linux terminal using the jq command-line tool. This hands-on tutorial walks through field access, nested object queries, array iteration, and the all-important -r raw output flag — using a real GitHub API response fetched with curl.

In this lab-style walkthrough you will learn to:
• Check whether jq is installed using `which jq`
• Fetch a live JSON response from the GitHub API with curl
• Inspect raw API output with `head` and `wc -c` before parsing
• Extract a single field with jq's `.field` filter syntax
• Drill into nested objects using paths like `.owner.login`
• Iterate over JSON arrays with `.[ ]` and the pipe operator
• Strip quotes from string output using the `-r` raw output flag
• Confirm HTTP status codes with curl's `-w %{http_code}` flag

Who this is for: developers, sysadmins, DevOps engineers, and IT students who work with JSON APIs in Linux shell scripts, automation pipelines, or day-to-day terminal work.

Which jq filter do you reach for most often — a simple `.field`, a deep nested path, or an array iteration? Drop your favorite one-liner in the comments below.

If this helped you parse JSON faster from the command line, subscribe for more Linux, DevOps, and shell scripting tutorials.

#linux #jq #json #curl #devops #bash #shellscripting #apitools


Nesta página do site você pode assistir ao vídeo on-line jq Tutorial: Parse JSON in the Linux Terminal (curl + GitHub API Demo) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário TechTooniya 18 Julho 2026, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2 vezes e gostou 0 espectadores. Boa visualização!