SyntaxFix
Write A Post
Hire A Developer
Questions
You can iterate the key/value pairs of the saveData object to build an array of the pairs, then use join("&") on the resulting array:
var a = []; for (key in saveData) { a.push(key+"="+saveData[key]); } var serialized = a.join("&") // a=2&c=1