var str = "t=дата&s=сумма"; var obj = str.split("&").reduce(function(ob, v) { v = v.split("="); ob[v[0]] = v[1]; return ob }, {} ); console.log(obj)