gson解析
来源:互联网 发布:网络赌搏多少钱定罪 编辑:程序博客网 时间:2024/05/20 20:55
List<Map<String, Object>> total = new Gson().fromJson(msg.getData().getString("result"), List.class);List<Map<String, Object>> listdata = new ArrayList<Map<String, Object>>();for (Map<String, Object> temp : total) {Map<String, Object> tp = new HashMap<String, Object>();tp.put("title", temp.get("title"));tp.put("isTitle", "true");listdata.add(tp);List<Map<String, Object>> l1 = (List<Map<String, Object>>) temp.get("items");listdata.addAll(l1);Map<String, Object> total = new Gson().fromJson(msg.getData().getString("result"), Map.class);MyApplication.getGlobalVar().setCreditData((Map<String, Object>) total.get("creditData"));Map<String,Object> map = gson.fromJson((String)msg.getData().getString("result"), Map.class); String qs = map.get("questionTitle").toString();List<String> temp = (List<String>) map.get("questionAnswers");TextView view = (TextView)findViewById(R.id.question);ArrayAdapter<String> aa = new ArrayAdapter<String>(QuestionVerityActivity.this,android.R.layout.simple_list_item_single_choice,temp);
阅读全文
0 0
- Gson解析
- GSON解析
- Gson解析
- Gson解析
- Gson解析
- Gson解析
- GSON解析
- Gson解析
- Gson解析
- Gson解析
- Gson解析
- Gson 解析
- gson解析
- Gson解析
- gson解析
- Gson解析
- GSON解析
- Gson解析
- Web小练习-JavaScript事件的简单练习,监听鼠标的移动
- androd开发部署与使用
- HttpClient发送get和post工具类
- PowerDesigner使用教程
- Netty中分隔符和定长解码器的应用
- gson解析
- 极品工控插件 iocomp 中 iXYPlotX1配置全面解析
- xshell打印日志的两种方式
- LightOJ 1125 Divisible Group Sums (dp)
- docker registry V2私有仓库搭建
- jQuery中动态创建元素节点无法触发事件
- [leetcode]97. Interleaving String(Java)
- 在Eclipse环境下配置Servlet开发环境
- 端口连通性