Skip to main content
add tags: javascript, json, jquery
Link
greenberet123
  • 1.5k
  • 1
  • 16
  • 23
Source Link
greenberet123
  • 1.5k
  • 1
  • 16
  • 23

Merge a list of json files containing JSON arrays

I have a list of json files like:

file1.json [ {obj1} ] file2.json [ {obj2} ] 

and I want to merge them all into one file:

[ {obj1}, {obj2} ] 

How can I achieve this using jq?