Catalog / json
JSON
Read, write, and validate JSON confidently — objects, arrays, nesting, all six types, and formatting
Install
$ learnctl install json@0.2.0
Current version 0.2.0, published 2026-07-09.
At a glance
- Stages
- 6
- Tasks
- 43
- Interviews
- 27
- Concepts
- 8
- Time
- 6 h 26 m
- Size
- 95.6 KB
Difficulty distribution
Table of contents
-
1. JSON structure and syntax
- Identify the six structural characters of JSON
- Distinguish a valid JSON document from an invalid one by eye
- Write a minimal valid JSON document from scratch
json-syntax -
2. The six value types
- Name all six JSON value types and give a literal example of each
- Explain why null, true, and false must be unquoted and lowercase
- Distinguish string '42' from number 42 and null from false
json-null-booljson-types -
3. Objects in depth
- Write a JSON object with multiple key-value pairs
- Explain the rules for keys (must be double-quoted strings, must be unique)
- Identify and fix a trailing-comma error in an object
json-objects -
4. Arrays in depth
- Write a JSON array of strings, numbers, and mixed types
- Explain that arrays are ordered and allow duplicates
- Access elements by index when reading programmatically
json-arrays -
5. Nested structures
- Write a JSON document with at least two levels of nesting
- Pretty-print and minify a JSON document with Python
- Read a deeply nested value with Python or jq
json-formattingjson-nesting -
6. Reading and fixing parse errors — real-world configs
- Identify the line and character of a JSON parse error from the error message
- Fix trailing commas, mismatched brackets, and single-quoted keys
- Write a valid package.json and a GitHub Actions step in JSON
json-parsing-errors
All versions
| Version | Published | Size | sha256 |
|---|---|---|---|
0.2.0 latest |
2026-07-09 | 95.6 KB | 32efdf2f8f2f |
0.1.0 |
2026-06-29 | 89.6 KB | 410728f0821f |
Validation
Last validated 2026-06-29
on Windows-11 · 43/43 passed.