且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用jq将json数组转换为jsonl格式

更新时间:2023-01-09 19:47:56

关键是-c命令行选项,它生成JSONL:

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

jq -c '.[]' test_array.json