by wwader · 2y ago · 0 comments
$ abc=123 jq -cn '$ENV | {abc, othername: .abc}'
{"abc":"123","othername":"123"}
$ jq -cn --arg abc 123 '{$abc, othername: $abc}'
{"abc":"123","othername":"123"}
$ jq -cn --argjson abc 123 '{$abc, othername: $abc}'
{"abc":123,"othername":123}No comments yet.