express-post-json Flashcards
1
Q
What does the express.json() middleware do and when would you need it?
A
It retrieves middleware which you can give to the app.use method to parse json inputs to objects. The inputs are the body of the http request. Only needed when clients are expected to send the server json.