Remove entries below a threshold.
Section: Entries and Key-Value Maps
Filter object entries by value
bash
bash
echo '{"a":1,"b":3,"c":5}' | jq 'to_entries | map(select(.value >= 3)) | from_entries'Explanation
A classic pattern for object filtering.
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 Entries and Key-Value Maps