I have a string:
"id=1&lotcode=ACB&location=A1&id=2&lotcode=CCC&location=B1"
Now I want to get an array of objects to pass to controller via ajax like this:
[{"id":1, "lotcode"="ACB","location":"A1"},{"id":2, "lotcode"="CCC","location":"B1"}]
I started by splitting the string
var string = data.split('&', 2);
now I stuck here...