title: JSON body always empty in Node.js application
body: <p>I am building a simple application using Node.js. On the client, I am sending some JSON data using Ajax to the server with the following code:</p>
  
  <pre class="lang-js prettyprint-override"><code>var data = {};
  data.title = "title";
  data.message = "message";
  $.ajax({
      type: 'POST',
      data: JSON.stringify(data),
      contentType: 'application/json',
      url: '/myresult',
      processData: false,
      success: function (data) {
          console.log('success');
          console.log(JSON.stringify(data));
      }
  });
  </code></pre>
  
  <p>The server side code handling this request is:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.post('/myresult', function (req, res) {
      var obj = {};
      console.log('body: ' + JSON.stringify(req.body));
      res.send(req.body);
  });
  </code></pre>
  
  <p>However the console log prints the response bode as empty, i.e. <code>body: {}</code>.</p>
  
  <p>Why is the body value empty and how can it be filled with the title and message?</p>