我想从一个JSONObject
如何在getJSONArray();中传递JSONObject作为字符串?
JSONObject jsonObject=new JSONObject(response_view);
for(int x=0; x<jsonObject.length(); x++) {
JSONArray jsonArray = jsonObject.getJSONArray("Here I have to pass");
}
这是我JSON
取多个JSONArray
,
{
"Mr. VICKRAM SINGH_269": [{
"status": "P",
"date": "2017-02-05"
}, {
"status": "P",
"date": "2017-02-06"
}],
"Mr. VIVEK KUMAR YADAV_276": [{
"status": "P",
"date": "2017-02-05"
}, {
"status": "P",
"date": "2017-02-06"
}]
}
http://stackoverflow.com/a/42530742/7320259请检查我的答案。这个问题也有JSON –
发布您的resonse_view JSON,以便我们可以帮助您 –
{“Mr. VICKRAM SINGH_269”:[{“status”:“P”,“date”:“2017-02-05”},{“status “:”P“,”date“:”2017-02-06“}],”VIVEK KUMAR YADAV_276先生“:[{”status“:”P“,”date“:”2017-02-05“} ,{“status”:“P”,“date”:“2017-02-06”}]} –