com.alibaba.fastjson.JSONObject obj = new com.alibaba.fastjson.JSONObject(); obj.put("a1", "tom"); obj.put("a2", "linly"); obj.put("a3", "Eric"); obj.put("a4", "Hety"); Map<String, String> params = JSONObject.parseObject(obj.toJSONString(), new TypeReference<Map<String, String>>(){});
标签:fastjson,map,obj,JSONObject,parseObject,put From: https://www.cnblogs.com/mihutao/p/16823896.html