Use jq to convert json array to jsonl format Use jq to convert json array to jsonl format json json

Use jq to convert json array to jsonl format


The key is the -c command-line option, which produces JSONL:

jq -c '.[]' test_array.json


figured this out:

cat test_array.json |jq '.[]'