support alias annotation

This commit is contained in:
Looly
2020-02-28 23:50:28 +08:00
parent 63e761139b
commit 623d5ef5c9
9 changed files with 87 additions and 26 deletions

View File

@@ -19,7 +19,7 @@ public class CustomSerializeTest {
JSONObject obj = JSONUtil.parseObj(customBean);
Assert.assertEquals("testName", obj.getStr("customName"));
}
@Test
public void deserializeTest() {
JSONUtil.putDeserializer(CustomBean.class, json -> {