express-post-json Flashcards

1
Q

What does the express.json() middleware do and when would you need it?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly