title: Convert Javascript object to C# object
body: <p>I'm setting up facebook canvas payments and it requires a callback when an order is successful. I have the code below and I'm using ajax to pass the callback data to my method so I can do something with it. I just don't know what to set as the parameter for the method so that I can pass the data correctly.</p>
  
  <pre><code>FB.ui(obj, function (data) {
                  $.ajax({
                      type: "GET",
                      dataType: "json",
                      contentType: "application/json",
                      url: "/Home/finishOrder",
                      data: myjsobject,
                      async: true
                  });
              });
  
  public class orderDetails
      {
          public string payment_id { get; set; }
          public decimal amount { get; set; }
          public string currency { get; set; }
          public int quantity { get; set; }
          public string request_id { get; set; }
          public string status { get; set; }
          public string signed_request { get; set; }
      }
  
      public void finishOrder(orderDetails orderDetails)
      {
          SendEmail.sendEmail(orderDetails.amount.ToString());
      }
  </code></pre>