Skip to content
masterclass Buddy

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.

Subscribe
  • express()
  • express.raw()
  • express.text()
  • express.urlencoded()
  • req.body
  • app.use()

Source: Express Object · Express.js 5.x. Checked 2026-11-03.