Map<String,Object> map = new HashMap<>();
map.put("111","121");
map.put("123",123);
map.put("333",12555555555555555555555555553.091);
SerializeConfig config = SerializeConfig.getGlobalInstance();
config.put(Double.class,new DoubleSerializer("#.#####"));
System.out.println(JSON.toJSONString(map));
原文链接:https://www.f2er.com/json/288589.html