title: Android parsing JSON from REST web-service
body: <p>I have a REST web service at <a href="http://susana.iovanalex.ro/esculap/ws2.php?key=abc&amp;action=getpatientlist" rel="nofollow">http://susana.iovanalex.ro/esculap/ws2.php?key=abc&amp;action=getpatientlist</a> which returns a JSON payload similar to the one below:</p>
  
  <pre><code>[{"id":"15","nume":"Suciu","prenume":"Monica","location":"Cardiologie, Salon 4, Pat 
     2","alarm_pulse_min":"60","alarm_pulse_max":"90","alarm_oxy_min":"90"},
   {"id":"101","nume":"Test Node","prenume":"Arduino","location":"UPT Electro, 
     B019","alarm_pulse_min":"50","alarm_pulse_max":"160","alarm_oxy_min":"93"},
   {"id":"160","nume":"Vasilescu","prenume":"Ion","location":"Cardiologie, Salon 4, Pat 
     2","alarm_pulse_min":"60","alarm_pulse_max":"120","alarm_oxy_min":"80"},
    {"id":"161","nume":"Lungescu","prenume":"Simion","location":"Pneumologie, Salon 5, Pat 
     5","alarm_pulse_min":"70","alarm_pulse_max":"110","alarm_oxy_min":"95"},
   {"id":"162","nume":"Paunescu","prenume":"Ramona","location":"Cardiologie, Salon 4, Pat 
     2","alarm_pulse_min":"0","alarm_pulse_max":"0","alarm_oxy_min":"0"}]
  </code></pre>
  
  <p>When using Android's parser on following the tutorial from <a href="http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/" rel="nofollow">http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/</a> I want to return in an ArrayList the processed data.</p>
  
  <p>I'm constantly getting the following error:</p>
  
  <pre><code> org.json.JSONException: Value [{"prenume":"Monica", ... "nume":"Paunescu"}] of type         
   org.json.JSONArray cannot be converted to JSONObject.
  </code></pre>
  
  <p>Could you please give me a code snippet or a pointer on where can I find some more info ?</p>