Compute an average across objects.
Section: Grouping and Aggregation
Average numeric field
bash
bash
echo '[{"score":80},{"score":90},{"score":100}]' | jq '(map(.score) | add) / length'Explanation
Simple but common analytics pattern.
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 Grouping and Aggregation