查询API后返回以下数据。当试图推送到Elasticsearch时,不断收到解析失败错误。通过jq播放运行以下内容似乎每个记录之间的逗号可能导致问题。我可以用jq处理以下内容,只删除每条记录之间的逗号吗?
{
"id": "47",
"canUpdate": true,
"canDelete": true,
"canArchive": true,
"info": [
{
"problem_type": "PAN",
"Category": "PAN"
},
{
"status": 3,
"Status": "Closed"
},
{
"insert_time": 1466446314000,
"Request time": "2016-06-20 14:11:54.0"
}
]
}, < this comma causing parse failure? >
{
"id": "48",
"canUpdate": true,
"canDelete": true,
"canArchive": true,
"info": [
{
"problem_type": "PAN",
"Category": "PAN"
},
{
"status": 3,
"Status": "Closed"
},
{
"insert_time": 1466446314000,
"Request time": "2016-06-20 14:11:54.0"
}
]
}