Return keys preserving insertion semantics when possible.
Section: Object Basics
Keys unsorted
bash
bash
echo '{"b":2,"a":1}' | jq 'keys_unsorted'Explanation
Useful when you want original key order rather than sorted order.
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 Object Basics