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.