Question: what is the difference between res.send and res.json?
Answer: The res. send function sets the content type to text/Html which means that the client will now treat it as text. ... json function on the other handsets the content-type header to application/JSON so that the client treats the response string as a valid JSON object. It also then returns the response to the client.