A request says what you want and a response says what happened. Most of the reading is in the status line and the headers, and the body is usually JSON that needs shaping before you can see its structure.
Each one is marked as you go, and the explanation arrives straight after, which is
the part worth reading.
4 questions, marked as you go.
Tasks
These need your own device. Run the command in Termux, then paste what it printed.
The marking looks at what the output means, so spacing, version numbers and
ordering do not matter. If you have not installed anything yet, the
lesson covers the setup.
Pretty-print a saved JSON reply
This writes a small JSON reply to a file, the way a saved API response would sit on disk, then reformats it so each key and value is on its own line. The lesson writes the interpreter as python; Termux also ships the versioned name python3, which is what this uses.
Run this in Termux
On your own device. Nothing on this page executes it. The command runs in
your terminal, and this box only reads what you paste back.
Four lines should come back, one key per line, each indented.
the id key and its number are printed on their own line
the name key and its string value are printed
the boolean value is kept as true
the command actually ran
What a good answer looks like
Four lines, each key on its own line and indented, with the braces on lines of their own: the id with its number, the name with its string, and created with the boolean true. The tool has not changed the data, only its layout, so the values still mean what they did in the one-line form. Notice that true is written without quotes, because JSON has real booleans rather than only text, and the formatter keeps that. Had the file held an error page instead of JSON, the tool would have stopped and named the line where it failed.
Marking your own work
Both halves of this are checked in your browser, with no server involved, so nothing
stops you from pasting output you did not run. The tasks are written so that the
easiest way to pass one is to actually do it and read the result, which is the whole
intention.