fastjson 2.0.9 is now released, another version that fixes bugs and improves compatibility. Specific updates include:
1. Issues
- Fix the problem that the BigDecimal type has incorrect results in some cases #540
- Fix the problem that the List field reports an error in some scenarios #539
- The problem that JSONB format serializes byte array type in some scenarios reports an error #537
- Fix the problem that JSONObject.getObject input List.class reports an error in some scenarios #536
- Improve the syntax compatibility of JSONPath #532
- Fix the problem that some scenarios cannot deserialize non-static nested classes #531
- Fix the problem that the input of NULL in some scenarios List type will cause an infinite loop #528 #525
- Add parameters fieldType and fieldName to the readObject method of the deserialized ObjectReader interface, which is compatible with fastjson 1.x #527
- Fix the problem that JSONPath will report an error in some scenarios #524
- Fix the priority of multiple set methods #523
- Fix compatibility pack android compatibility issue #520 #511
- Fix the problem that JSONObject.containsKey is incorrect in none-string key #518
- Fix support for IBM J9 JDK 8.0 #516
- Fix compatibility with fastjson 1.x Set syntax #513
- Fix graal native image support issue #509
- Fix WriteClassName feature support for HashMap #507
- Fix the problem of deserialization error when the field type is JSONArray #502
- Enhance support for unquoted fields #478
- Fix support for java.util.Vector type fields #517
- Custom serialization supports LocalDate/LocalTime/LocalDateTime
2. MAVEN dependency configuration
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.9</version> </dependency>
- GraalVM version
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.9.graal</version> </dependency>
- Android version
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.9.android</version> </dependency>
- 1.x compatible version
<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>2.0.9</version> </dependency>
Related Links
- 25 related issues https://github.com/alibaba/fastjson2/milestone/8
- Code tag https://github.com/alibaba/fastjson2/releases/tag/2.0.9
- Standard version https://repo1.maven.org/maven2/com/alibaba/fastjson2/fastjson2/2.0.9/
- Graal supported version https://repo1.maven.org/maven2/com/alibaba/fastjson2/fastjson2/2.0.9.graal/ (only verified on GraalVM 22.1 JDK17)
- android version https://repo1.maven.org/maven2/com/alibaba/fastjson2/fastjson2/2.0.9.android/
- 1.x compatible version https://repo1.maven.org/maven2/com/alibaba/fastjson/2.0.9/
For details, please check: https://github.com/alibaba/fastjson2/releases/tag/2.0.9