改变以下格式JSON格式我想这个数据格式转换:如何使用JavaScript
"color;blue:36 ,red:27"
以下JSON格式:
{
"Record": [
{
"type": "color",
"data": "blue",
"total": "36"
},
{
"type": "color",
"data": "red",
"total": "27"
}
]
}
是'颜色;蓝色:36,红色:27'真的是你想要的格式转换? –
是的..我得到这种格式的数据,即时通讯寻找将其转换为上述格式.. –
你有更多的数据? –