title: Post an object as data using Jquery Ajax
body: <p>My code that I tried is as follows:</p>
  <pre><code>var dataO = new Object();
  dataO.numberId = 1;
  dataO.companyId = 531;
  
  $.ajax({
      type: &quot;POST&quot;,
      url: &quot;TelephoneNumbers.aspx/DeleteNumber&quot;,
      data: &quot;{numberId:1,companyId:531}&quot;,
      contentType: &quot;application/json; charset=utf-8&quot;,
      dataType: &quot;json&quot;,
      success: function(msg) {
          alert('In Ajax');
      }
  });
  </code></pre>
  <p>I would like to pass the object <code>dataO</code> as the ajax data, how can I do it?</p>