I have an array of objects with below value
var arr =
[{"Id":"0QL8W000006RHl1WAG","Sortorder":"1"},
{"Id":"0QL8W000006RHl0WAG","Sortorder":"2"},
{"Id":"0QL8W000006RHl2WAG","Sortorder":"3"}
]
Now I want to convert it to an object with below format.
var arr = {0QL8W000006RHl1WAG=1,0QL8W000006RHl0WAG=2,0QL8W000006RHl2WAG=3}
I have really tried most of the javascript methods for this with no success.
Please help on this. It's really very very urgent.