express-post-json Flashcards

(1 cards)

1
Q

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

A

It parses incoming request Object as a JSON object.

And you can use it when access the request body and it is in a json string format.

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