title: Assign requestjs response to variable
body: <p>How would one assign the body of <code>request.get('http://someurl/file.json', function(err, response, body) {})</code> to a variable?</p>
  
  <p>For example:</p>
  
  <p>file.json</p>
  
  <pre><code>{
      "Name1": {
          "prop": "value"
      },
      "Name2": {
          "prop": "value"
      }
  }
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>var json = request.get(http://localhost/file.json);
  json = JSON.parse(json);
  
  console.log(json["Name1"].prop);
  </code></pre>
  
  <p>Thanks in advance :)</p>