posting JSON to MVC controller - String parameter is null
问题 I am intentionally trying NOT to use a binding in the controller parameter, so I have a controller that looks like: [HttpPost] public ActionResult UntypedForm(String serializedformdata) { //// ... } When I post serialized JSON form elements to the controller with the below code: var formelements = $('#form').serializeArray(); $.post(url, formelements, function (data) { }, "json").error(function () { alert("Error posting to " + url); }); I get a NULL value for String serializedformdata on my