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();
}
}