title: Android app to parse JSON from website
body: <p>Ok, so the first hurdle was cleared in just a few minutes, let's see how this one does.</p>
  
  <p>The code is pulling the JSON data from the website fine as I can see in my log, but now the JSONParser is failing.  I think the issue is JSONObject versus JSONArray, but I can't figure that out.</p>
  
  <p>Here is the data pulled from the JSON site as seen in the log:</p>
  
  <pre><code>09-10 09:45:00.175: I/log_tag(785): {"stoker":{"sensors":[{"id":"620000116F01CA30","name":"SS2","al":0,"ta":66,"th":75,"tl":65,"tc":66.3,"blower":null},09-10 09:45:00.175: I/log_tag(785): {"id":"E20000116F0CDB30","name":"brskt2","al":0,"ta":203,"th":32,"tl":32,"tc":70.6,"blower":null}],09-10 09:45:00.175: I/log_tag(785): "blowers":[{"id":"37000000119D8B05","name":"party","on":0}]}}
  </code></pre>
  
  <p>And here is the code trying to parse the data:</p>
  
  <pre><code>            try{
              JSONArray jArray = new JSONArray(result);
              for(int i=0;i&lt;jArray.length();i++){
                  JSONObject json_data = jArray.getJSONObject(i);
                  Sensor resultRow = new Sensor();
                  resultRow.id = json_data.getString("id");
                  resultRow.name = json_data.getString("name");
                  resultRow.current = json_data.getString("tc");
                  resultRow.target = json_data.getString("ta");
                  arrayOfWebData.add(resultRow);
              }
          }
          catch(JSONException e){
                  Log.e("log_tag", "Error parsing data "+e.toString());
          }
  </code></pre>
  
  <p>And here is the entry in the log file when it fails:</p>
  
  <pre><code>09-10 09:45:00.314: E/log_tag(785): Error parsing data org.json.JSONException: Value {"stoker":{"sensors":[{"id":"620000116F01CA30","al":0,"tl":65,"tc":66.3,"ta":66,"name":"SS2","blower":null,"th":75},{"id":"E20000116F0CDB30","al":0,"tl":32,"tc":70.6,"ta":203,"name":"brskt2","blower":null,"th":32}],"blowers":[{"id":"37000000119D8B05","on":0,"name":"party"}]}} of type org.json.JSONObject cannot be converted to JSONArray
  </code></pre>