JsonResult function put unknown Dictionary item
<p>In MVC i have function </p>

<pre>
[HttpPost]
public JsonResult SaveCard(Dictionary&lt;string, Dictionary&lt;string, string&gt;&gt; Data, int? IDPC)
{
   return Json(new { Data = Data, IDPC: IDPC });
}
</pre>

<p>If i post data through jquery like </p>

<pre><code>$.ajax({
    url: "/Ajax/Admin/Hardware/SaveCard",
    type: "POST",
    accept: "application/json",
    data: { Data: [], IDPC: 5 },
    success: function (Response) { }
});
</code></pre>

<p>Then will return </p>

<pre><code>{"Data":{"controller":{},"action":{}},"IDPC":5}
</code></pre>

<p>See the problem? I wish to been Data null, because ajax don't send Data parameter if is array empty, so request send only IDPC parameter, function SaveCard retrieve only one parameter, second may be null, but isn't. I don't now why and why have Data parameter items like controller and action.</p>

<p>Thanks for help</p>