我在 JSON 中得到响应我想解析这个
[
{
"fbuid": "100000462110782"
},
{
"fullname": "Arun Pathania"
},
{
"fbuid": "100000257902867"
},
{
"fullname": "Shiju vargheae"
},
{
"fbuid": "100003337246078"
},
{
"fullname": "Smart Buzz"
}
]
我尝试了以下方法:
JSONArray jArray = new JSONArray(result);
for (int i=0; i < jArray.length(); i++) {
JSONObject oneObject = jArray.getJSONObject(i); // Pulling items from the array
u_id_json = oneObject.getString("fbuid");
u_name_json = oneObject.getString("fullname");
}
错误
error is coming is :--org.json.JSONException: No value for fullname –
请告诉我如何在android中解析这个