请问大神们,这样的json数据如何改成下面第二种我想要的格式。
[{
"DATE": "2019-11-11 11:04:31",
"CRXS1": "0 "
}, {
"DATE": "2019-11-11 11:40:50",
"CRXS1": "0 "
}, {
"DATE": "2019-11-15 11:03:29",
"CRXS1": "0 "
}, {
"DATE": "2019-11-15 11:04:29",
"CRXS1": "0 "
}, {
"DATE": "2019-11-15 11:05:29",
"CRXS1": "0 "
}]
改成这样的格式:
[{
value: [
"2019-11-11 11:04:31",
0
]
},
{
value: [
"2019-11-11 11:40:50",
0
]
},
{
value: [
"2019-11-15 11:03:29",
0
]
},
{
value: [
"2019-11-15 11:04:29",
0
]
},
{
value: [
"2019-11-15 11:05:29",
0
]
}
]