title: How to get JSON POST data in ASP.NET Web Forms?
body: <p>I currently have some jquery that is POSTing data onto one of my web pages.</p>
  
  <p>Right now I'm just trying to get it to post some JSON to test it out, but I can't figure out have to actually get the data in my back-end once it's posted.</p>
  
  <p>I've always used <code>Request.Params</code> to get posted data, but it doesn't seem to be working this time.</p>
  
  <p>This is the code I'm using to do the post:</p>
  
  <pre><code>// This data is just for testing purposes, doesn't actually do anything
  var person = {
      name: "Bob",
      address: "123 Main St.",
      phone: "555-5555"
  }
  
  var jqxhr = $.ajax({
      type: "POST",
      url: "/example/mypage.aspx",
      contentType: 'application/json; charset=utf-8',
      dataType: "json",
      timeout: 0,
      success: function () {
          alert("Success");
      },
      error: function (xhr, status, error) {
          alert(error);
      },
      data: person
  });
  </code></pre>
  
  <p>The post is definitely successful though, as I can see it using Fiddler, plus when I check <code>Request.ContentLength</code> it returns the right number of bytes that was posted.</p>
  
  <p>But I can't find the actual data anywhere.
  Any ideas on what I'm doing wrong?</p>
  
  <p>Thanks in advance.</p>