title: Accessing the first item in a JSON output using Javascript Fetch API
body: <p>I'm trying to retrieve the latest entry from this <a href="https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&amp;symbol=MSFT&amp;interval=5min&amp;apikey=demo" rel="nofollow noreferrer">JSON output</a>. The data I am trying to retrieve is the latest entry, an example of which is below (the link above shows the entire json).</p>
  
  <pre><code>"Time Series (5min)": {
          "2018-11-21 16:00:00": {
              "1. open": "103.3300",
              "2. high": "103.4300",
              "3. low": "103.0800",
              "4. close": "103.0800",
              "5. volume": "1430557"
          },
  </code></pre>
  
  <p>Obviously I can specify the exact entry by referencing the </p>
  
  <p><code>['2018-11-21 16:00:00']
  </code></p>
  
  <p>using square bracket notation and similarly</p>
  
  <p><code>['4. close']
  </code></p>
  
  <p>in order to retrieve the data I need, but given that the latest entry is constantly switching date and time, the reference is always changing.</p>
  
  <p>How do I ensure I am always retrieving the latest value?</p>