Hacker symbol

September 8, 2019 ~ 1 min read

Merge jsons

To merge two json files one can use the following

$ jq -s '.[0] .[1]' file1 file2 > output.json

The contents of file2 take precedence over the contents of file1

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.