Return every scalar value in a document.
Section: Paths and Deep Updates
Get all leaf values
bash
bash
echo '{"user":{"name":"alice","roles":["admin","dev"]}}' | jq '.. | scalars'Explanation
Recursive descent plus `scalars` is a good way to inspect content quickly.
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