Express res.json() example
Once the server process the client request, the result needs to be sent back to the client. Express provides various methods to send the result like res.send(), res.json(), res.redirect(). In today’s post, we are going to see res.json(). res.json() is a utility wrapper around res.send() that also adds the Content-Type: application/json header to the response. This header […]