jq: fix jq syntax error (#4257)

This commit is contained in:
Harrison
2020-08-11 09:49:43 -06:00
committed by GitHub
parent 507c0df261
commit 677ca84ceb

View File

@@ -29,7 +29,7 @@
- Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name` and `other_key_name`): - Output the value of multiple keys as a new JSON object (assuming the input JSON has the keys `key_name` and `other_key_name`):
`cat {{file.json}} | jq '{{{my_new_key}}: .{{key_name}}, {{my_other_key}}: {{other_key_name}}}'` `cat {{file.json}} | jq '{{{my_new_key}}: .{{key_name}}, {{my_other_key}}: .{{other_key_name}}}'`
- Combine multiple filters: - Combine multiple filters: