赞
踩
- List list = new ArrayList();
- Map<String,String> map = new HashMap<>();
- map.put("name","szy");
- map.put("num",2);
- list.add(map);
- String inventoryResultStr = JSON.toJSON(list).toString();
- var strJson1 ='${inventoryResultStr}';
-
- var verficationPeopleMap=JSON.parse(strJson1);
- List inventoryResultList = JSONObject.parseArray(inventoryResult);
- for(Integer i=0;i<inventoryResultList.size();i++){
- JSONObject jsonObject = (JSONObject) inventoryResultList.get(i);
- String name =jsonObject.getString("name");
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。