fastjson 2.0.34 has been released, this is an enhanced version with bug fixes.
Version 2.0.34 has been further improved, and the performance test report is here https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark
Issues
- Fix the problem of L suffix caused by incompatibility with WriteClassName #1512
- Fix the problem that the deserialization result type of the LinkedList object is incorrect #1520
- Fix the problem that the error message is incorrect #1533
- Enhance the support of toJavaObject, support string to List #1517
- Fix the problem of null pointer exception when contextClassLoader is empty #1534
- Fix the problem that the WriteNoneStringValueAsString option does not work for the Number type #1537
- Fix the problem that serialization opens PrettyFormat and the data is out of bounds #1557
- Fix the problem that the sequence of Float/Double and NaN after format is not null #1562
- Fix the problem that the result of JSONB.toJSONString is incorrect when the data type is TIMESTAMP #1568
- Fix the problem that serialization does not support Iterable type #1563
- Fix the problem that the parent class field configuration serialize=false causes the subclass field with the same name to not be serialized #1513
- Fix RecomputeFieldValue.FieldOffset compilation warning issue #1519
- Enhance JSONPath to support filter with multiple conditions #1516
- Fix the problem that some scene reference calculations do not work #1515 #1514
- Newly added JSONWriter.Feature.NotWriteNumberClassName #1510
- Fix the problem that kotlin.collections.EmptyList cannot be serialized #1540
- Fix the problem that serialization has a circular reference object and reports OOM #1545 #1544
- Enhance support for Enum deserialization #1578
- Added version 2.0.34.1.android compatible with android 4
MAVEN dependency configuration
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.34</version> </dependency>
- android4 compatible version
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>2.0.34.1.android</version> </dependency>
- 1.x compatible version
<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>2.0.34</version> </dependency>
- Spring 5 extension configuration
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2-extension-spring5</artifactId> <version>2.0.34</version> </dependency>
- Spring 6 extension configuration
<dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2-extension-spring6</artifactId> <version>2.0.34</version> </dependency>
Related Links
- FASTJSON 1.x user upgrade guide https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
- Related issues https://github.com/alibaba/fastjson2/milestone/34
- Code tag https://github.com/alibaba/fastjson2/tree/2.0.34
- Maven download https://repo1.maven.org/maven2/com/alibaba/fastjson2/fastjson2/2.0.34/
- Android4 compatible version https://repo1.maven.org/maven2/com/alibaba/fastjson2/fastjson2/2.0.34.1.android4/
- 1.x compatible version https://repo1.maven.org/maven2/com/alibaba/fastjson/2.0.34/
- Performance test report https://github.com/alibaba/fastjson2/blob/main/docs/benchmark/benchmark_2.0.34.md