title: Loading data from a JSON file
body: <p>I am trying to get some data from a JSON file. Here is the code for it - </p>
  
  <pre><code>import csv
  import json
  ifile  = open('facebook.csv', "rb")
  reader = csv.reader(ifile)
  
  rownum = 0
  for row in reader:
      try:
          csvfile = open('facebook.csv', 'r')
          jsonfile = open('file.json', 'r+')
          fieldnames = ("USState","NOFU2008","NOFU2009","NOFU2010", "12MI%", "24MI%")
          reader = csv.DictReader( csvfile, fieldnames)
          for row in reader:
              json.dump(row, jsonfile)
              jsonfile.write('\n')
          data = json.load(jsonfile)
          print data["USState"]
      except ValueError:
          continue
  </code></pre>
  
  <p>I am not getting any output on the console for the print statement. The JSON is in the following format </p>
  
  <pre><code>{"USState": "US State", "12MI%": "12 month increase %", "24MI%": "24 month increase %", "NOFU2010": "Number of Facebook UsersJuly 2010", "NOFU2008": "Number of Facebook usersJuly 2008", "NOFU2009": "Number of Facebook UsersJuly 2009"}
  {"USState": "Alabama", "12MI%": "109.3%", "24MI%": "400.7%", "NOFU2010": "1,452,300", "NOFU2008": "290,060", "NOFU2009": "694,020"}
  </code></pre>
  
  <p>I want to access this like NOFU2008 for all the rows. </p>