title: Express: empty req.body
body: <p>I have simply express server:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const express = require('express');
  const exphbs = require('express-handlebars');
  const path = require('path');
  const bodyparser = require('body-parser');
  
  const app = express();
  const hbs = exphbs.create({
      defaultLayout: 'main',
      extname: 'hbs'
  });
  
  const _PORT = process.env.PORT || 80;
  
  app.engine('hbs', hbs.engine);
  app.set('view engine', 'hbs');
  app.set('views', 'views');
  app.use(bodyparser.urlencoded({ extended: false }));
  app.use(bodyparser.json({ type: 'application/*+json' }));
  app.use(express.static(path.join(__dirname, 'public')));
  
  app.use(require('./routers/login'));
  
  serverStart();
  
  async function serverStart(){
      try{
          app.listen(_PORT);
          console.log('[SERVER] Server is listening port ' + _PORT + ' now.');
      }catch(error){ 
          console.log(error);
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>And simply router:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const { Router } = require('express');
  
  const router = Router();
  
  router.get('/', async (req, res) =&gt; {
      res.render('login', {
          title: 'main page'
      });
  });
  
  router.post('/', async (req, res) =&gt; {
      console.log(req.body);
  });
  
  module.exports = router;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Why 'req.body' is always empty?
  I tried to send POST query from "Postman", but it isn't work.
  It's working only with x-www-form-urlencoded query, but I want to send json query.</p>
  
  <p>P.S. Sorry for my english.</p>
  
  <p>UPD: postman screenshot
  <a href="https://i.stack.imgur.com/tkgDh.png" rel="nofollow noreferrer">link</a></p>