{"users":[
{
"user_id":6,
"user_name":"Ted Vanderploeg",
"email":"[email protected]",
"additional_info":[["HP","Chief Sales Officer","","",1]]
},
{
"user_id":59,
"user_name":"Lindsay White",
"email":"[email protected]",
"additional_info":[["Microsoft","Global Head","","",1]]
}
]
}
现在我需要从ADDITIONAL_INFO阵列中获得的价值“微软”。这就是我想:
for(int i=0;i
JSONObject jsonObject = new JSONObject(jArray.getString(i));
String workInfo = jsonObject.getString("additional_info");
Log.i("MyActivity", "got work obj as " + workInfo.toString());
}
现在,我得到workInfo如[ “微软”, “全球负责人”, “”, “”,1]。陷入如何继续下一步,以获得微软的价值。
2015-10-17
Ninja