Return the type of the current value.
Section: Object Basics
Get JSON type
bash
bash
echo '{"a":1}' | jq 'type'Explanation
Returns values like `object`, `array`, `string`, `number`, and `boolean`.
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