Look up a nested value using a path array.
Section: Paths and Deep Updates
Read value by explicit path
bash
bash
echo '{"user":{"profile":{"name":"alice"}}}' | jq 'getpath(["user","profile","name"])'Explanation
Useful when paths are built dynamically.
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 Paths and Deep Updates