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

Date: 2017-10-06

Tags:  json

Share: