Here is my problem:
I have a JSON structure as below
[{
"groupid": 29,
"percentage": 14
}, {
"groupid": 29,
"percentage": 22
}, {
"groupid": 59,
"percentage": 66,
}]
and i need to convert that into as below using Javascript.
{
"29": [14, 22],
"59": [66]
}