express-post-json Flashcards

1
Q

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

A

express.json() is a method inbuilt in express to recognize the incoming request object as a JSON object. It parses the body and puts it on the body property.

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