改變以下格式JSON格式我想這個數據格式轉換:如何使用JavaScript
"color;blue:36 ,red:27"
以下JSON格式:
{
"Record": [
{
"type": "color",
"data": "blue",
"total": "36"
},
{
"type": "color",
"data": "red",
"total": "27"
}
]
}
是'顏色;藍色:36,紅色:27'真的是你想要的格式轉換? –
是的..我得到這種格式的數據,即時通訊尋找將其轉換爲上述格式.. –
你有更多的數據? –