I want to convert this data format:
"color;blue:36 ,red:27"
to the following JSON format:
{
"Record": [
{
"type": "color",
"data": "blue",
"total": "36"
},
{
"type": "color",
"data": "red",
"total": "27"
}
]
}
color;blue:36 ,red:27really the format you want to convert?