curl and jq 8 · jq: filter and transform JSON

Sort by a field

Sort an array of objects by a field.

jq 'sort_by(.age)' users.json

Official curl and jq 8 documentation

More jq: filter and transform json commands

All jq: filter and transform json commands · curl and jq 8 cheatsheet

Was this page helpful?