Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 407 Bytes

concatenate_two_fields.md

File metadata and controls

12 lines (8 loc) · 407 Bytes

Concatenate two fields in jq

You can easily concatenate two fields in jq using the + operator.

echo '{"channel": "youtube", "profile_type": "video", "member_key": "hello"}' \
 | jq '{channel: (.profile_type + "." + .channel)}'

Resources and References