title: Consuming JSON object in PHP, sent from jQuery
body: <p>I'm sending a JSON object to PHP using jQuery via</p>
  
  <pre><code>$.ajax({
      url: myURL,
      type: 'POST',
      contentType: "application/json; charset=utf-8",
      data: myData,
      processData: false,
      dataType: 'html',    
      async: false,
      success: function(html) {
          window.console.log(html);
      }
  });    
  </code></pre>
  
  <p>and trying to decode the JSON object using</p>
  
  <pre><code>$GLOBALS["HTTP_RAW_POST_DATA"];
  </code></pre>
  
  <p>but the contents of variable are printed as</p>
  
  <pre><code>[object Object]
  </code></pre>
  
  <p>with json_decode() returning NULL (of course).</p>
  
  <p>Any ideas what I need to do to get the at the actual JSON data?</p>
  
  <p>Thanks,
  Gaz.</p>