If you're using jQuery, then you can use the jQuery.param() function:
var obj = { "foo":"bar", "baz":"boom", "php":"hypertext processor" };
var str = jQuery.param(obj);
alert(str); // should be "foo=bar&baz=boom&php=hypertext+processor"
It can serialise some complex arrays too.