Here is the JSON object I have:
new Ajax.Request(url, {
method: 'post',
contentType: "application/x-www-form-urlencoded",
parameters: {
"javax.faces.ViewState": encodedViewState,
"client-id": options._clientId,
"component-value": options._componentValue
}
});
My goal now is to dynamically add new parameters to the existing "Parameters" object, but I'm unsure of the correct way to do this programmatically.