I need to convert a js object to another object for passing onto a server post where the names of the keys differ for example
var a = { name : \"Foo\",
Why don't you use this simple java script ? Value of any key:value pair should be string/number/Boolean.