Here is my js/ajax code:
$.ajax({
type: 'POST',
data: JSON.stringify(jsonObj),
url: 'filter/GetAjaxTestResult',
dataType: 'json',
contentType: "application/json; charset=utf-8",
success: function (data) {
alert(data);
}
});
And I want to post json
as string. here is what I tried in mvc/controller:
[HttpPost]
public JsonResult GetAjaxTestResult(dynamic jsonString)
{
return "";// Here jsonString is null!!!
}
How Can I get json
as string
? Is it possible?