title: parsing json array in django
body: <p>Hi i am trying to parse JSON array in django sent from android 
  the json response sent from android looks like</p>
  
  <pre><code> [{"record":[{"intensity":"Low","body_subpart":"Scalp","symptom":"Agitation"}]}]
  </code></pre>
  
  <p>Now my function in django is as below :</p>
  
  <pre><code>record = simplejson.loads(request.POST['record'])
  for o in record:            
      new_symptoms=UserSymptoms(health_record=new_healthrecord,body_subpart=o.body_subpart,symptoms=o.symptom,intensity=o.intensity)
      new_symptoms.save()
  </code></pre>
  
  <p>but its not working
  gving me error 
  For that i also tried to execute above lines in python shell</p>
  
  <pre><code>&gt;&gt;&gt;rec=json.loads('[{"intensity":"Low","body_subpart":"Scalp","symptom":"Agitation"},{"intensity":"High","body_subpart":"Scalp","symptom":"Bleeding"}]')
  &gt;&gt;&gt; for o in rec:
  ...     print rec.body_subpart
  ... 
  Traceback (most recent call last):
    File "&lt;console&gt;", line 2, in &lt;module&gt;
  AttributeError: 'list' object has no attribute 'body_subpart'
  </code></pre>