我正在使用Highchart插件开发图表。为了给图表提供动态输入,我需要将JSON格式更改为数组。如何使用JavaScript将JSON数组对象格式更改为数组?
[
{
"scoreCount": "108",
"legendDesc": "Excellent ",
"colorPatchCode": "#009900"
},
{
"scoreCount": "20",
"legendDesc": "Fail ",
"colorPatchCode": "#FF0000"
}
]
将类似于数组的格式转换为
[
[
"scoreCount": "108",
"legendDesc": "Excellent ",
"colorPatchCode": "#009900"
],
[
"scoreCount": "20",
"legendDesc": "Fail ",
"colorPatchCode": "#FF0000"
]
]
Can any one help?