title: Passing JSON to MVC Controller?
body: <p>I have a JSON object with nested arrays which I would like to send to a controller.</p>
  
  <p>This is my jQuery.ajax call:</p>
  
  <pre><code>$.ajax({
              url: "@Url.Action("ExportJson")",
              type: "POST",
              data: JSON.stringify(myObj),
              contentType:"application/json",
              success: function (result) {
  
              }
          });
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult ExportJson(string json)
              {
  
  
  
                  return null;
              }
  </code></pre>
  
  <p>Why is the json string coming back as null in the controller? Whereas console.log(JSON.stringify(myObj)) shows the correct object in browser console.</p>