title: Getting null array on ajax post
body: <p>I am passing an array(multidimensional) as a parameter to ajax call but getting null on url.</p>
  
  <p>I tried using JSON.stringify and without stringify but it always returns null.</p>
  
  <p>How can we fix it, TIA.</p>
  
  <p><strong>Ajax:-</strong></p>
  
  <pre><code> $.ajax({
                  type: "POST",
                  data: JSON.stringify({ filterData: myVal }),                 
                  dataType: 'json',
                  contentType: 'application/json',
                  async: false,
                  url: "/Home/AddFilters",
                  success: function (msg) {                 
                  }
              }); 
  </code></pre>
  
  <p><strong>Url:-</strong></p>
  
  <pre><code>public JsonResult AddFilters(string[] filterData)
  {
  }
  </code></pre>
  
  <p><strong>Array(myVal):-</strong></p>
  
  <p><a href="https://i.stack.imgur.com/EJBMq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EJBMq.png" alt="Array"></a></p>
  
  <p><strong>Array after JSON.stringify:-</strong>
  <a href="https://i.stack.imgur.com/Ik4mJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ik4mJ.png" alt="Array after JSON.stringify"></a></p>