Resolve promises for `res.json`