Concatenate/combine/join files with a separator and next line (e.g separate by ",")

sed -s '$a,' *.json > all.json
click the source code to copy