Build a smaller object from chosen keys.
Section: Object Basics
Project specific fields
bash
bash
echo '{"id":1,"name":"alice","email":"a@example.com","role":"admin"}' | jq '{id, name, role}'Explanation
Ideal for reducing noisy API payloads.
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