Replaced res.json with res.send