title: jQuery : How to send JSON data in AJAX post?
body: <p>I am working on AJAX. I create a post request like the following :</p>
  
  <pre><code>   $.ajax({
      'url':'http://localhost/api/create/',
      'method':'POST',
      'dataType': 'json',
      'contentType': 'application/json',
      'data':{
          "refId":585,
          "phone":"0674444444"
       },
       'success': getHandlingStatus
  
    });
  </code></pre>
  
  <p>When my request is executed, data are passed as parameters in my request payload and not as JSON data.
  Here is my Request Payload:</p>
  
  <pre><code>refId=585&amp;phone=0674444444
  </code></pre>
  
  <p>I want to send data in json format like :</p>
  
  <pre><code>{
  "refId":"585",
  "phone:"0674444444"
  }
  </code></pre>
  
  <p>What am I missing please ?</p>