title: How to parse json data python django?
body: <p>I have JSON data, I want to parse it. </p>
  
  <p>I used Code bellow:</p>
  
  <pre><code>def json_update(request):
       j = urllib2.urlopen('http://ec2-72-44-51-113.compute-1.amazonaws.com:8001/get_latest_verification')
       j_obj = json.load(j) 
       print j_obj.status
       return HttpResponse(j_obj.status)
  </code></pre>
  
  <p>But I am getting the error:</p>
  
  <p><strong>AttributeError at /json_update</strong></p>
  
  <p>'list' object has no attribute 'status'</p>
  
  <p>my json data:</p>
  
  <pre><code>[{"status": "Registered", "credential": "10000323xsds", "scan_time": "Jan.15,2014, 03:30 pm", "asset_code": "cls103", "emp_id": "LS07", "location": "BLR-10", "auth_code": "DSC(Verisign", "operator": "pradeep", "id": 538}]
  </code></pre>
  
  <p>what is the correct way of parsing json data.</p>
  
  <p>But when I updated the code to:</p>
  
  <p><strong>UPDATED CODE:</strong></p>
  
  <pre><code>def json_update(request):
       j = urllib2.urlopen('http://ec2-72-44-51-113.compute-1.amazonaws.com:8001/get_latest_verification')
       j_obj = json.load(j)
       for jo in j_obj: 
        print j_obj[jo]['status']
       return HttpResponse(j_obj[jo]['status'])
  </code></pre>
  
  <p>I am getting error:</p>
  
  <p><strong>TypeError at /json_update</strong></p>
  
  <p>list indices must be integers, not dict</p>