title: Sending an empty array from ajax gave a null parameter in ASP.NET MVC action
body: <p>I have a simple ajax call like:</p>
  
  <pre><code>$.ajax({
     url: ... ,
     data: { anArray: [] },
     ...
  });
  </code></pre>
  
  <p>and the controller's action:</p>
  
  <pre><code>public ActionResult Test(int[] anArray) {
     ...
  }
  </code></pre>
  
  <p>seems that <code>anArray</code> is null instead of empty array.</p>
  
  <p>I tried also with</p>
  
  <ul>
  <li><code>List&lt;int&gt;</code></li>
  <li><code>string[]</code></li>
  <li><code>object[]</code></li>
  </ul>
  
  <p>but for all of above, I see null for <code>anArray</code> parameter.</p>
  
  <p>I read similar questions but there are related to model parameters, I don't have, here, model.</p>
  
  <p>How to receive an empty array in controller's action ? What should I do ?</p>