Does passing it a Json blob work? If not use Json.stringify({url: urlTextBox.value, event: 'PostDeployment'}).

Seems very odd to construct json strings in javascript