var o = { param1: "value1", param2: "value2" }
console.log(o);
console.log(escape(o));
The first console.log shows Object { param1: "value1", param2: "value2" },
the second: %5Bobject%20Object%5D (i.e. [object Object])
How to serialize an object properly without any plugings?