title: Value of type org.json.JSONObject cannot be converted to JSONArray
body: <p>When I return string from another activity and try to convert it to JSONArray, the program show me this:</p>
  
  <pre><code>08-22 14:51:35.313: E/YourCartActivity(1134): Error parsing data 
  org.json.JSONException:
  Value {"yourCart_totalPrice":"5500.00","yourCart_productName":"AAA",
  "yourCart_productImg":"http:\/\/10.0.2.2\/appserv\/products\/aaa02.jpg",
  "yourCart_productID":"0000002",
  "yourCart_productAmount":"2",
  "yourCart_shopID":"001"} 
  of type org.json.JSONObject cannot be converted to JSONArray
  </code></pre>
  
  <p>does anybody know how to solve this problem?</p>
  
  <p>This my code:</p>
  
  <pre><code>String json = yourCartConnect.getYourCartDetails();
  
          try {
              JSONArray jResult = new JSONArray(json);
  
  
              for(int i=0;i&lt;json.length();i++){
                  JSONObject f = jResult.getJSONObject(i);
                  YourCartEntry resultRow = new YourCartEntry();
  
                  resultRow.setYourCart_shopID(f.getString("yourCart_shopID"));
                  resultRow.setYourCart_totalPrice(f.getString("yourCart_totalPrice"));
                  resultRow.setYourCart_productName(f.getString("yourCart_productName"));     
                  resultRow.setYourCart_productID(f.getString("yourCart_productID"));
                  resultRow.setYourCart_productImg(f.getString("yourCart_productImg"));
                  resultRow.setYourCart_productAmount(f.getString("yourCart_productAmount"));
  
                  yourCartEntries.add(resultRow);
              }
  
          setList(yourCartEntries);
  
  
          } catch (JSONException e) {
              Log.e("YourCartActivity", "Error parsing data " + e.toString());
              errorConnectToServer();
          }
  </code></pre>