var data1=[
{"year":2000,
"country":"Madagascar",
"country_id":847,
"indicator":"Current account balance - National Currency (millions)"
},
{"year":2005,
"country":"Madagascar",
"country_id":847,
"indicator":"Current account balance - National Currency (millions)"
},
{"year":2000,
"country":"Madagascar",
"country_id":847,
"indicator":"Net Income - National Currency (millions)"
},
{"year":2005,
"country":"Madagascar",
"country_id":847,
"indicator":"Net Income - National Currency (millions)"
}
]
これは、underscorejsを使用してこのように実行したい私のjsonデータです
{
"key":"Madagascar"
"values":[
{"year":2000,
"country":"Madagascar",
"country_id":847,
"indicator":"Current account balance - National Currency (millions)"
},
{"year":2005,
"country":"Madagascar",
"country_id":847,
"indicator":"Current account balance - National Currency (millions)"
}
]
}
underscore.jsを使用してこの問題を解決するのを誰かが助けてくれますか?