title: Extract data from JavaScript object
body: <p>How can I assign the "Exchange Rate" value of "18.52005000" in the object below to a JavaScript variable?</p>
  
  <pre><code>{
      "Realtime Currency Exchange Rate": {
          "1. From_Currency_Code": "USD",
          "2. From_Currency_Name": "United States Dollar",
          "3. To_Currency Code": "MXN",
          "4. To_Currency_Name": "Mexican Peso",
          "5. Exchange Rate": "18.52005000",
          "6. Last Refreshed": "2018-02-17 12:53:11",
          "7. Time Zone": "UTC"
      }
  }
  </code></pre>
  
  <p>I know a little bit of JavaScript - a script I made interfaces with an API for currency conversion rates and I simply need the rate portion to do the rest of my calculations.</p>
  
  <p>I am doing something like this to create the object:</p>
  
  <pre><code>var http_response = httpGet(query_url);
  var http_response_json = JSON.parse(http_response);
  </code></pre>
  
  <p>Thanks!</p>