Fix deprecation warning for res.json(status, object).