Restored use of res.json.