LFZ JS Flash Cards > express-post-json > Flashcards
What does the express.json() middleware do and when would you need it?
Parses incoming request with json payloads and is based on body-parser, that is, parses the content which is the body. If there is no body it returns an empty object.