Tried to find how to make {foo:\"bar\"}
from ?...&foo=bar&...
but googled and got only to jQuery.params
which does the opposit
I know this thread is a bit old - but this is what worked for me - hopefully it will help someone else too ..
var _searchModel = yourquerystring.split("&");
for (var x = 0; x < _searchModel.length; x++) {
//break each set into key and value pair
var _kv = _searchModel[x].split("=");
//console.log(_kv);
var _fieldID = _kv[0];
var _fieldVal = _kv[1];
}