Skill · Data formats · Write, check and query configuration and data formats
Query and transform JSON on the command line with jq
Read, filter and transform JSON on the command line with jq: selectors, select, map and options useful in scripts and troubleshooting.
Start lesson 1The Data formats domain
- 3 lessons
- ~1 h 30 of reading
- 3 quizzes
- 0 proof lab
Lessons
How to learn it
3 lessons, about ~1 h 30, in program order. Each lesson ends with its quiz.
The program
3 lessons · ~1 h 30
Part 1 · Outiller : interroger, produire, explorer, valider (in French) 1 lesson · ~30 min
- 1jq: process JSON on the command line· 30 min
Part 2 · Écrire du JSON conforme (in French) 1 lesson · ~30 min
- 2JSONC, JSON5 et NDJSON (in French)· 30 min
Part 3 · Outiller : interroger, produire, explorer, valider (in French) 1 lesson · ~30 min
- 3Explorer un JSON inconnu (in French)· 30 min
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
3 quizzes
At the end of the lessons: passed at 70%, they confirm the skill.
Practice
No guided lab
No guided lab practices it yet.
Proof
No proof
Neither a challenge nor a mission with a proof yet.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
Taught by
Same block · Write, check and query configuration and data formats
- Write and review a correct, unambiguous YAML document
- Query and modify a YAML document reproducibly
- Validate a YAML document with linting, schemas and automated checks
- Validate JSON strictly and against a JSON Schema
- Produce correctly typed and escaped JSON from a script
- Query structured output with JSONPath, notably in kubectl
- Query structured output with JMESPath (AWS CLI, Azure CLI, Ansible)
- Consume a REST API reliably from a shell script
- Read and write correct HCL, separating the language from what Terraform and Packer add
- Query and modify HCL files from a script, verifiably
- Format, validate and lint HCL files, in CI and locally