use res.json() instead of res.send() for json responses