title: reference a value outside of the request function
body: <p>I want to acceed to the variable JSON.parse(body) but not in the callback function of the function request. How i can do this ?
  Here is my code:</p>
  
  <pre><code>request('https://' + region + '.api.pvp.net/api/lol/' + region + '/v2.5/league/by-summoner/' + id + '/entry?api_key=' + APIKEY, function(error, response, body) {
      return JSON.parse(body)
  })
  </code></pre>
  
  <p>Thanks for your help.</p>