Computer scienceSystem administration and DevOpsCommand lineText processing

Sorting and transforming JSON with jq

Sorting JSON with jq tool

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Given the JSON file
{"employees":[{"firstName":"John", "lastName":"Doe"},{"firstName":"Anna", "lastName":"Smith"},{"firstName":"Peter", "lastName":"Jones"}]}
, how would you use the command-line tool jq to sort the employee records by last name in ascending (A-Z) order?
Select one option from the list

Create a free account to access the full topic