title: How do I consume the JSON POST data in an Express application
body: <p>I'm sending the following JSON string to my server.</p>
  
  <pre><code>(
          {
          id = 1;
          name = foo;
      },
          {
          id = 2;
          name = bar;
      }
  )
  </code></pre>
  
  <p>On the server I have this.</p>
  
  <pre><code>app.post('/', function(request, response) {
  
      console.log("Got response: " + response.statusCode);
  
      response.on('data', function(chunk) {
          queryResponse+=chunk;
          console.log('data');
      });
  
      response.on('end', function(){
          console.log('end');
      });
  });
  </code></pre>
  
  <p>When I send the string, it shows that I got a 200 response, but those other two methods never run. Why is that?</p>