http://blog.csdn.net/superit401/article/details/51734591

  1. String category = "{'v-soft-list':[{typecode:'zhuanbi',gametype:'赚币',count:5},{typecode:'dongzuo',gametype:'动作',count:12},{typecode:'maoxian',gametype:'冒险',count:14},{typecode:'xiuxian',gametype:'休闲',count:61},{typecode:'zhili',gametype:'智力',count:17},{typecode:'gaoxiao',gametype:'搞笑',count:6},{typecode:'celue',gametype:'策略',count:4},{typecode:'qipai',gametype:'棋牌',count:2}]}";  
  2.           
  3.         JSONObject jsonObject = JSONObject.fromObject(category);    
  4.         JSONArray jsArray = jsonObject.getJSONArray("v-soft-list");    
  5.         for(int i=0;i<jsArray.size();i++){    
  6.            JSONObject jsObject = (JSONObject)jsArray.get(i);    
  7.            String typeCode = (String)jsObject.get("typecode");    
  8.            System.out.println(typeCode);    
  9.         }   

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-12-27
  • 2022-12-23
  • 2021-11-03
  • 2021-12-24
  • 2021-08-01
猜你喜欢
  • 2021-11-28
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2023-03-03
相关资源
相似解决方案