diff --git a/CHANGELOG.md b/CHANGELOG.md index e1ef3db..e05259c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## [2.0.4] ### Fixed - Fix bugs caused by some collection types. +### Remove +- Build for idea 233 Remove commons.lang3 ## [2.0.3] ### Added diff --git a/src/test/java/ink/organics/pojo2json/test/TempTestCase.java b/src/test/java/ink/organics/pojo2json/test/TempTestCase.java index 13a80a5..f7e2830 100644 --- a/src/test/java/ink/organics/pojo2json/test/TempTestCase.java +++ b/src/test/java/ink/organics/pojo2json/test/TempTestCase.java @@ -1,6 +1,7 @@ package ink.organics.pojo2json.test; +import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.CaseFormat; import ink.organics.pojo2json.parser.el.EvaluationContextFactory; import org.junit.Test; @@ -59,4 +60,21 @@ public void test5() { System.out.println(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, sss)); System.out.println(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, sss)); } + + public void test6(){ + + // https://github.com/FasterXML/jackson-core/issues/734 + + + ObjectMapper objectMapper = new ObjectMapper(); + // 过滤空属性 +// objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + // setter 失败不抛出异常 +// objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); +// // 允许出现特殊字符和转义符 +// objectMapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true); +// // 允许出现单引号 +// objectMapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true); + + } }