Select a top-level property by key.
Section: Selectors and Paths
Get object property
bash
bash
echo '{"name":"alice","age":30}' | jq '.name'Explanation
Returns the value of the `name` field.
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 Selectors and Paths