Changed res.json to res.send