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.