
"creditcards":[
{
"id":"1368", "cardtype":"普卡", "customer":{
"id2":"2357053", "custnum":"KHP002357053", .... }}]
在学 android 开发,上面这个 json 数组得到 id 是: obj.setId(jsonobj.optString("id"));
如果要得到 customer 下面的 id2 或者 custname,应该怎么做呢?
1 yidinghe 2017-07-21 21:51:32 +08:00 via Android 用专门的 json 解析库,例如 fastjson |