Concat 2 fields in JSON using jq
问题 I am using jq to reformat my JSON . JSON String: {"channel": "youtube", "profile_type": "video", "member_key": "hello"} Wanted output: {"channel" : "profile_type.youtube"} My command: echo '{"channel": "youtube", "profile_type": "video", "member_key": "hello"}' | jq -c '. | {channel: .profile_type + "." + .member_key}' I know that the command below concatenates the string. But it is not working in the same logic as above: echo '{"channel": "youtube", "profile_type": "video", "member_key":