title: how to get the json of a route without fetch
body: <p>l have a route which return me a json with user grant.</p>
  
  <pre><code>router.get('/test', function(req, res,next ) {
  
      var token = req.cookies.auth;
      if (!token) return res.status(401).send({ message: ""});
  
      jwt.verify(token, config.secret, function(err, decoded) {
        if (err) return res.status(500).send({ message: "Failed to authenticate token."});
        User.findById(decoded.id,function(err,user){
            if (err) return res.status(500).send({ message: "problmes found user, sorry "});
  
            if(!user) return res.status(404).send({message: "user not found "});
            res.status(200).send({message:user.role});
        });
  
      });
    });
  </code></pre>
  
  <p>i want to catch the json response in a variable for  another route to authorize an action. </p>
  
  <pre><code>router.get('/', function(req, res, next) {
  
    if (jsonresponse == grant ){
    var allMusique;
    var idMaxMusique;
    MongoClient.connect(url, function(err, db) {
        if (err) throw err;
        var dbo = db.db("projet_node");
        dbo.collection("musiques").find({}).toArray(function(err, result) {
            if (err) throw err;
            allMusique = result;
            var size = allMusique.length-1;
            idMaxMusique = parseInt(result[size].id)+1;
            res.render('musiques', { resultat: allMusique, idMax: idMaxMusique });
        });
        });}
        else{
            res.render('unauthorized');
        }
  });
  </code></pre>