title: Python: Extracting Set of Values from JSON
body: <p>I have a set of data I am pulling from an API for stock market history. The history is then stored in a file "history.json". I need to get all recurring sets of the key "4. close". There are between 100 days &amp; 10 years of data in a call. The data is formatted like so:</p>
  
  <pre><code>{
      "Meta Data": {
          "1. Information": "Daily Prices (open, high, low, close) and Volumes",
          "2. Symbol": "SPY",
          "3. Last Refreshed": "2018-01-10",
          "4. Output Size": "Compact",
          "5. Time Zone": "US/Eastern"
      },
      "Time Series (Daily)": {
          "2017-08-18": {
              "1. open": "242.9000",
              "2. high": "244.1900",
              "3. low": "242.2000",
              "4. close": "242.7100",
              "5. volume": "136748000"
          },
          "2017-08-21": {
              "1. open": "242.6400",
              "2. high": "243.2000",
              "3. low": "241.8300",
              "4. close": "242.9000",
              "5. volume": "65469700"
          }
  </code></pre>
  
  <p>Preferably I would like the output in order as a list with the values excluding the keys as a list. It can be called into memory or converted into another file to open - it does need to retain order as it will be used sequentially in the algorithm. (I try to figure things out on my own, I am new to programming though so if you could simplify things as much as possible I would appreciate it.)</p>