Emit every key in nested objects.
Section: Encoding and Recursion
Find all keys recursively
bash
bash
echo '{"a":1,"b":{"c":2}}' | jq '.. | objects | keys[]'Explanation
Useful for schema discovery and audits.
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 Encoding and Recursion