Read a nested field from JSON.
Section: sed awk and Structured Text Workflows
Extract JSON field
bash
bash
jq -r '.items[].metadata.name' pods.jsonExplanation
Excellent for combining API JSON with shell pipelines.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed awk and Structured Text Workflows