 <p>You can use the <code>body-parser</code> middleware:</p> <pre><code>$ npm install body-parser --save </code></pre> <p>Then:</p> <pre><code>const express = require('express') const bodyParser = require('body-parser') const app = express() app.use(bodyParser.urlencoded({ extended: true })) app.use(bodyParser.json()) app.post('/foo', function (req, res) { // req.body is a plain object }) </code></pre>