express-post-json Flashcards

1
Q

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

A

it parses incoming requests with JSON and returns the object containing parsed data on req.body. You would need it if you are posting something.

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