这是回应
我想知道如何处理这样的JSON响应?
这是JSONArray,但没有名称
这是响应:

[[84,"sinat","[email protected]"],[88,"msn","[email protected]"],[89,"163t","[email protected]"],[90,"mail","[email protected]"],[93,"mail","[email protected]"]]

最佳答案

数据不是JSONObject而是JSONArray

String json_value = '[[84,"sinat","[email protected]"],[88,"msn","[email protected]"],[89,"163t","[email protected]"],[90,"mail","[email protected]"],[93,"mail","[email protected]"]]';

JSONArray json_array = new JSONArray(json_value);


然后像这样走过

for(int i = 0; i < json_array.length(); i++){
    Log.d("Current index: "+i,"Current value: "+json_array.getJSONArray(i).toString());
}

10-06 04:59