sort a .JSON file that is an array


cat mydata.json | jq 'sort_by(.sortkey)' 

Where sortkey is the member that you want to sort by

Tags:  json

Share: