Skip to content

Commit

Permalink
release 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
organics2016 committed Feb 3, 2024
1 parent 222f886 commit 4fff591
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions src/test/java/ink/organics/pojo2json/test/TempTestCase.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);

}
}

0 comments on commit 4fff591

Please sign in to comment.