Android JsonObject 数据的遍历
2016-05-04 11:31
387 查看
String s="{"error":"0","msg":"读取成功","addressjson":[{"id":"3","name":"成龙","p":"130000","c":"130300","d":"130321","address":"在哪里","zcode":"58888","phone":"1366815555","def":"0"}]}";
try { JSONObject obj= new JSONObject(s); Iterator it = obj.keys(); String vol = "";//值 String key = null;//键 while(it.hasNext()){//遍历JSONObject key = (String) it.next().toString(); vol = obj.String(key); } } catch (JSONException e) { e.printStackTrace(); }
相关文章推荐
- Object C基础学习(三)
- Java Object 的介绍
- juce 中的ReferenceCountedObjectPtr
- 使用Objective-C的文档生成工具:appledoc
- 速战速决 (2) - PHP: 数据类型 bool, int, float, string, object, array
- JAVA、PHP、C#、Object-C 通用的DES加密解密
- java.lang.Object
- Object-c------类的本质
- python 2.x和3.x关于 'module' object has no attribute 'open'的解决办法
- python 2.x和3.x关于 'module' object has no attribute 'open'的解决办法
- Realm的model终于可以不继承RealmObject了
- 一定要看的。深入理解Objective-C:Category
- Object-c------分类
- Objective-C中instancetype详解
- 属性遍历:in操作符/Object.keys()/ Object.getOwnPropertyNames()
- iOS使用Object-C自定义cordova插件(二)
- iOS开发系列--Objective-C之KVC、KVO
- 虚幻4 String2Asset String2Class String2Object
- detection/region/object proposal 方法综述文章
- Objectness measure V2.2