首页 > 编程语言 > 详细

解析json数组

时间:2015-08-13 11:59:13      阅读:231      评论:0      收藏:0      [点我收藏+]

String str=response.toString();
JSONObject obje;
try {
obje = new JSONObject(str);

JSONArray objec=new JSONArray(obje.getString("obj"));
int i=objec.length();

for(int t=0;t<i;t++){
JSONObject jsonObject=objec.getJSONObject(t);
String DFRQ=jsonObject.optString("DFRQ",""); }}

解析json数组

原文:http://www.cnblogs.com/chhom/p/4726428.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!