I'm looking for a way to easily convert parameters passed to an action into a JavaScript Object. I would prefer not to do the following:
var o = new Object();
o['param1'] = param1
o['param2'] = param2
...
As that will mean whenever the list changes I will need to add it as a parameter and change the code.