I would like to build a json string programmatically. The end product should be something like:
var myParamsJson = {first_name: "Bob", last_name: "Smith" };
However I would like to do it one parameter at a time. If it were an array, I would just do something like:
var myParamsArray = [];
myParamsArray["first_name"] = "Bob";
myParamsArray["last_name"] = "Smith";
I wouldn't even mind building that array and then converting to json. Any ideas?