I have the following problem:
On a Button-Click I POST some data to the server. My controller Action looks like this:
public ActionResult Accept(List
With your answer and the use of JSON.stringify
method it works for me
var myEntries = { entries: [{ ParamA: "A", ParamB: "B" },
{ ParamA: "C", ParamB: "D" }] };
$.ajax({
type: 'POST',
url: '/{controller}/{action}',
cache: false,
data: JSON.stringify(myEntries),
dataType: 'json',
contentType: 'application/json; charset=utf-8'
});