Hands-on task
jq: rebuild objects
/root/products.json is an array of objects with id and price. Build a new JSON array where each element has only two fields: id and price_with_tax = price * 1.2 (the original price field must not be kept). Put the result in /root/taxed.json.
- jq
- object construction
- arithmetic in jq
- working with arrays
- json