Step: Iterate: .[]

Iterate: .[]

.[] explodes an array (or object's values) into a stream of separate outputs — one result per element, not one array.

[1,2,3] | .[]     # => 1  2  3   (three outputs)

Why it matters: streams are the heart of jq. Most pipelines are "iterate, then do something to each element."

Your turn: emit each hobby as its own output.

Input:
{
  "firstName": "Charles",
  "lastName": "Doe",
  "hobbies": [
    "chess",
    "netflix",
    "fitness"
  ]
}
Expected:
"chess"
"netflix"
"fitness"
Step 8 of 27