title: Node.js Express Can't get Post Data
body: <p>When I post to /insertUser and it schema.saveUser(req) it doesn't find the correct data.  I am using node-inspector and it can't find my post data.  I have also tried req.body and it finds nothing.  I am sending a json</p>
  
  <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var schema = require("./schemas");
  var app = express();
  
  app.get('/hello.txt', function(req, res){
    res.send('Hello World2');
  });
  
  app.post('/insertUser', function(req, res){
  console.log("Request handler 'insertUser' was called.");
  //console.log(req.body);
  
  schema.saveUser(req);
  
  response.writeHead(200, {"Content-Type": "text/plain"});
  res.send("You've sent the text: " + req);
  response.write("The following data has been saved to the database: " + jsonString);
  res.end();
  });
  
  var server = app.listen(8888, function() {
      console.log('Listening on port %d', server.address().port);
  });
  
  
  
  function saveUser(postData){
    var jsonObj = JSON.parse(postData);
  
    var newUser = new User({
      name: jsonObj.name,
       email: jsonObj.email,
      photoURL: jsonObj.photourl,
      groups: jsonObj.groups
    });
  
    newUser.save(function(err, newUser) {
      if (err) return console.error(err);
      console.dir(newUser);
    });
  }
  </code></pre>
  
  <p>edit:</p>
  
  <pre><code>    SyntaxError: Unexpected token o
  
       at Object.parse (native)
       at Object.saveUser (schemas.js:42:22)
      at Object.handle (server.js:25:9)
      at next_layer (route.js:103:13)
       at Route.dispatch (route.js:107:5)
       at c (index.js:195:24)
      at Function.proto.process_params (index.js:251:12)
       at next (index.js:189:19)
       at next (index.js:166:38)
      at Layer.urlencodedParser [as handle] (index.js:70:44)
  </code></pre>