Hands-on task
This task is step 1 of the course “JSON, YAML and XML in the terminal”
jq: nested field
In /root/data.json there is an object with a nested field user.name. Extract its value (without quotes) and write it to /root/name.txt.
Reference:jq
What you'll practise:
- jq
- json
- key path
- raw output