Express.js · Function
express.raw
express.json() returns middleware that parses matching JSON request bodies and puts the result in req.body. Validate that user-controlled body data has the expected shape before using it.
Last updated
Syntax
express.json(options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
express()express.raw()express.text()express.urlencoded()req.bodyapp.use()