title: Express JS not sending JSON in response to post request
body: <p>I'm writing a little AngularJS app that's communicating with an ExpressJS backend for JSON. My server.js file looks like:</p>
  
  <pre><code>var express = require('express'),
      app = express();
  
  //Express 4
  app.use(express.static(__dirname, '/'));
  
  app.get('/questions', function(req, res) {
      res.json(questions);
  });
  
  app.post('/new_question', function(req, res){
      res.json(req.body);
      //questions.unshift(req.body);
  });
  
  app.listen(8080);
  </code></pre>
  
  <p>When I: <code>curl -H "Content-Type: application/json" -d '{text: "text", votes: 0 }' localhost:8080/new_question</code> I get nothing back. What am I missing here? I feel like it must be something exceptionally dumb.</p>