Hands-on task
This task is step 6 of the course “JSON, YAML and XML in the terminal”
jq: build an array of values
From /root/users.json build a JSON array containing all user names (values of the name field) and write it to /root/names.json. The result must be a valid JSON array of strings.
Reference:jq
What you'll practise:
- jq
- array construction
- iteration
- map
- json