title: Read request payload in c# asp.net ajax POST request
body: <p>I am sending a <code>POST</code> ajax request to Home controller in asp.net mvc project. Here is sample javascript. ( the convertUtcToLocal is basically a function that will return the time to local date ).</p>
  
  <pre><code>var data = [{"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""},    
  {"Time":convertUtcToLocal(1377003600000),"OldValue":35.2,"NewValue":""}];
  
  $.ajax({url : 'http://localhost:64387/Home/TableEdit', 
          type : 'POST', 
          contentType:'application/json',
          dataType :'json', 
          data : JSON.stringify(data)});
  </code></pre>
  
  <p>In Home controller I get ,</p>
  
  <pre><code>[HttpPost]
          public object TableEdit(object data)
          {
              // object is shown in the Watch as object
  
          }
  </code></pre>
  
  <p>In Google Chrome, I can see request payload
  <img src="https://i.stack.imgur.com/nDXOH.png" alt="enter image description here"></p>
  
  <p>How do I access the data in my Home controller action ?</p>