Assert.assertEquals("1.12", JSON.toJSONString(1.123456789D, config));
}
public void test_1() throws Exception {
SerializeConfig config = new SerializeConfig();
config.put(Double.class, new DoubleSerializer("###.###"));
Assert.assertEquals("1.123", JSON.toJSONString(1.123456789D, config));
}