title: How do I use JSON sent from a POST Request to C#?
body: <p>So as the title says, I'm looking to manipulate JSON received from a client side AJAX POST request in a C# backend.  Here is my code:</p>
  
  <p><strong>Client side:</strong></p>
  
  <pre><code>var myData = { Name: "tyler", Age: 3 };
  var moreData = {
      documentName: "Doc-109",
      attachments: {
          name: "Attachment 11"
      }
  };
  $.post('/NMISProduct/Index', { myData: myData, moreData: moreData }, function(returnedData) {
      console.log(returnedData);
  }, 'json');
  </code></pre>
  
  <p><strong>C# backend:</strong></p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(string myData, string moreData)
  {
      //I want to return myData.Name + moreData.attachments.name in JSON format - How do I do this?
  }
  </code></pre>
  
  <p>How do I do this?</p>