title: How to parse external json request and put it into a variable?
body: <p>I'm very new to coding, I'm hoping someone can help me. I have this little bit of code, I am trying to learn this process:</p>
  
  <ol>
  <li>Call Made to URL via GET request (json)</li>
  <li>Parse the response from the GET request</li>
  <li>Save the response into a variable that I will use later</li>
  </ol>
  
  <p>Any and all help is appreciated!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
  const awsURL = 'https://cors.io/?http://status.aws.amazon.com/data.json';
  
  function Get(awsURL){
      var request = new XMLHttpRequest();
      request.open("GET", awsURL, false);
      request.send(null);
      return request.responseText;
  }
  
  var AWSJson = JSON.parse(Get(awsURL));
  console.log("Archived Outages: "+AWSJson.service_name);</code></pre>
  </div>
  </div>
  </p>