title: JSON into a List of Lists - Python
body: <p>I have got the following .json file that has to be converted into a Python list of lists for further analysis. </p>
  
  <p>Here is how the input looks like:</p>
  
  <pre><code>[{"RFA_2F":4,"RFA_2A":"E","TARGET_B":0,"LASTGIFT":5,"AVGGIFT":7.4814814815,"PEPSTRFL":"X","LASTDATE":9512,"WEALTH_INDEX":3.33,"INCOME":3,"FISTDATE":9001,"NAME":"Reshama Y. Saat"},
  {"RFA_2F":4,"RFA_2A":"E","TARGET_B":0,"LASTGIFT":10,"AVGGIFT":6.8125,"PEPSTRFL":"X","LASTDATE":9512,"WEALTH_INDEX":2.60,"INCOME":1,"FISTDATE":8702,"NAME":"Alex P. Singh"},
  {"RFA_2F":1,"RFA_2A":"E","TARGET_B":0,"LASTGIFT":11,"AVGGIFT":7.6428571429,"PEPSTRFL":"X","LASTDATE":9504,"WEALTH_INDEX":5.14,"INCOME":4,"FISTDATE":8701,"NAME":"Vamsee M. Doban"},...]
  </code></pre>
  
  <p>The code I am currently using:</p>
  
  <pre><code>import json
  f = open('assess2_data.json')
  d = json.load(f)
  
  training = []
  for row in d:
      for field in row:
          row = []
          row.append([field])
      training.append(row)
  </code></pre>
  
  <p>I know there is an error, but I cannot think of a way to address it:</p>
  
  <p><strong>TypeError: list indices must be integers, not unicode</strong></p>
  
  <p>The output should look like:</p>
  
  <pre><code>[[4,"E",0,5,7.4814814815,"X",9512,3.33,3,9001,"Reshama Y. Saat"],...]
  </code></pre>