Recursive cat all the files into single file
Use find
to get all the JSON files and concatenate them.
find data -name '*.json' -exec cat {} + > all.json
Note that this will not be valid JSON. If you want a JSON file to contain multiple objects, they need to be in a containing array or object, so you'd need to add [ ]
around them and put ,
between each one.