What does the express.json() middleware do and when would you need it?
it recognizes the incoming request object as a JSON object then attaches it to req.body
you would need it when the client makes a post/put because in both these requests the user is sending data (in the form of some data object) to be accepted or stored by the server
What is middleware?
middleware is the functions/methods/operations that are called in between a request and a response