Use a fallback when a value is null or missing.
Section: Filters and Conditions
Fallback default value
bash
bash
echo '{"name":"alice"}' | jq '.email // "unknown@example.com"'Explanation
The `//` operator provides a default value.
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 Filters and Conditions