各位,我从服务器上得到返回的JSON数据没有KEY该如何解析啊?先谢谢各位了。
像是下面这样的JSON数据,
[
     {
        "screen_name": "阿信",
         "followers_count": 11091994,
         "uid": 1265020392
     },
     {
         "screen_name": "阿信星闻",
         "followers_count": 22427,
         "uid": 1822541757
     }
 ]前都没有key值的,该怎么解析啊,我试着先将字符串转化为数组,在循环遍历数组提取出每个数组中想要的:
JSONArray jsonArray = new JSONArray(retStr);
for (int i = 0; i < jsonArray.length(); i++)
{
  JSONObject jsonObject = jsonArray.getJSONObject(i);
	{
	  HashMap<String, Object> hashMap = new HashMap<String, Object>();
	  hashMap.put("count", jsonObject.getString("followers_count"));
	  hashMap.put("name", jsonObject.getString("screen_name"));
	  Data.add(hashMap);			          
         }
}但是提示我  org.json.JSONException: Value <html of type java.lang.String cannot be converted to JSONArray  那怎么弄啊?