express-post-json Flashcards

1
Q

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

A

It parses the body of the incoming request and makes the resulting object available in the req.body property.

when you are expecting to receive JSON-formatted data in the body of a request

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