I want to build a JSON string programmatically. The end product should be something like this:
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 do something like this:
var myParamsArray = [];
myParamsArray["first_name"] = "Bob";
myParamsArray["last_name"] = "Smith";
I wouldn't even mind building that array and then converting it to JSON.