目前项目有个需求,导出json。我用的map<String,object> value放的是list。转成json后给对方,完事后还会传同样格式的json给我。
Map<String, Object> jsonMap = new HashMap<String, Object>();
jsonMap.put("eList", eList);
jsonMap.put("iList", iList);
JsonConfig jsonConfig = new JsonConfig(); 
jsonConfig.setIgnoreDefaultExcludes(false); 
jsonConfig.setExcludes(new String[]{"instruments","entrust"});
JSONObject jsonArray = JSONObject.fromObject(jsonMap,jsonConfig);我是这么转的json,但是现在不会再转回来了。求教大神,怎么再把json转成map啊(就是再转成我最开始的那样,value是list的)。