zoukankan      html  css  js  c++  java
  • json数组取里面值

      

    数据格式大概是 {mess:suecess,data:{LWXX{[C_BH:111,C_BW:133],[C_BH:112,C_BW:132]}}}

    String jsonResult = HttpClientUtil.doPostJson(url, json);//获取结果
               System.out.println("jsonresutl----->"+jsonResult);
               net.sf.json.JSONObject  jsonObjectlz   = net.sf.json.JSONObject.fromObject(jsonResult);
               Map<String, Object> dataMap=(Map<String, Object>)jsonObjectlz.get("data");
               List<Map<String, Object>> lwxxdataMapList= (List<Map<String, Object>>)dataMap.get("LWXX");
           

      if(lwxxdataMapList != null && lwxxdataMapList != null) {
                   
                   for(Map<String, Object> lwxxMap : lwxxdataMapList){
                       String lwxxbh=""+lwxxMap.get("C_BH").toString().trim();

          }

      }

  • 相关阅读:
    YL杯超级篮球赛 (Standard IO)
    Window (Standard IO)
    toj1026 Network 双连通分量
    poj3177 Redundant Paths 双连通分量
    poj1144 Network 双连通分量
    bzoj1269
    bzoj1800
    CF911D
    CF910C
    CF910B
  • 原文地址:https://www.cnblogs.com/sjzxs/p/14411517.html
Copyright © 2011-2022 走看看