title: How to print the response body (or the request body when POST) in Node.js using Express?
body: <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var mongoose = require('mongoose');
  mongoose.Promise = require('bluebird');
  
  
  mongoose.connect("mongodb://localhost/placement-process");
  
  var app = express();
  
  app.use(bodyParser.urlencoded({extended:true}));
  app.use(bodyParser.json());
  
  var router = require('./router');
  app.use('/api', router);
  
  router.get('/companies', function(req, res){
      console.log(res.body);
  });
  
  
  app.listen(3000);
  </code></pre>
  
  <p>I am making GET requests to /api/companies using POSTMAN for Chrome browser. But I am not getting any output in my console. What am I doing wrong? Or how would you do it?</p>