我确实有像下面这样的 json
[ [{
"id": "4e181c1b-0a68-425e-9eb7-df36324b6cdb",
"date_actual": {
"value": "2020-10-21T13:15:00"
},
"Date": "20201021",
"name": "abc"
},
{
"id": "4e181c1b-0a68-425e-9eb7-df36324qqq",
"date_actual": {
"value": "2020-1-21T13:15:00"
},
"Date": "2020102",
"name": "xyz"
}
]
]
想要修改如下
[ {“id”:“4e181c1b-0a68-425e-9eb7-df36324b6cdb”,“date_actual”:“2020-10-21T13:15:00”,“日期”:“20201021”,“名称”:“abc”
},
{
"id": "4e181c1b-0a68-425e-9eb7-df36324qqq",
"date_actual": "2020-10-21T13:15:00",
"Date": "2020102",
"name": "xyz"
}
]
我的服务类别代码是
const rows = await bigqueryClient.query(queryData);
console.log("old json"+JSON.stringify(rows));
return rows;
如何使用nestjs解决这个问题请帮助我?
翻阅古今
相关分类