title: Python AND JSON Parsing
body: <p>I am new to python or JSON. I have a file that has JSON data. </p>
  
  <p>When I tried to read the file file. "Items" is the key of the file. I used following python script:</p>
  
  <pre><code>data=pandas.read_json('fileName.json') #using pandas
  df=pandas.DataFrame(data) or json.loads #-&gt; to read the file
  print df.get('Items', {}) #-&gt; to read entire file 
  print df['Items'][0]['Patron'] #-&gt; I can read an individual Patron like at '0' or '100'. But I want to generate the list of all 'patron' from the list. How do I do that? Any advise? 
  </code></pre>
  
  <p>If I do remove [0] I get Key error or something. I am sure its because of unable to access the dictionary. Is there any way to resolve it? </p>
  
  <pre><code>{"Items": [{
    "Activity": "search.api",
    "Library": 1531,
    "Patron": 583586,
    "Tag": "browse-eaudio-religion",
    "Items": [
      "mediatype:eaudio",
      "genre:religion",
      "libraryid:1531",
      "ownership:owned",
      "usertype:patron",
      "page-count:5",
      "page-index:0",
      "page-size:60",
      "resultset-count:290",
      "sort:"
    ],
    "SearchType": "browse",
    "MediaType": "eaudio",
    "Genre": "religion",
    "NamedQuery": null,
    "Input": null,
    "ResultsetCount": 290,
    "Year": 2015,
    "Month": 4,
    "Day": 0,
    "Hour": 13
  },{
    "Activity": "search.api",
    "Library": 985,
    "Patron": 674919,
    "Tag": "quick-author",
    "Items": [
      "libraryid:985",
      "ownership:owned",
      "usertype:patron",
      "page-count:93",
      "page-index:0",
      "page-size:60",
      "resultset-count:5552",
      "sort:author"
    ],
    "SearchType": null,
    "MediaType": "",
    "Genre": "",
    "NamedQuery": null,
    "Input": null,
    "ResultsetCount": 5552,
    "Year": 2015,
    "Month": 4,
    "Day": 0,
    "Hour": 13
  }
  </code></pre>