Hands-on task
This task is step 3 of the course “JSON, YAML and XML in the terminal”
Extract fields with jq
/root/users.json contains an array of objects with an email field. Using jq, dump all emails (one per line) to /root/emails.txt.
Reference:jq
What you'll practise:
- jq
- array iteration
- raw output
- json
- field extraction