Cooper
Cooper
### 问题描述 基于#1487,在fastjson中无法解析,抛出异常。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49/2.0.50-SNAPSHOT] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import org.junit.jupiter.api.Test; import...
### 问题描述 序列化timestamp时,当毫秒位为0时会默认舍去,不为0时则保留。虽然可以通过@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")格式化,但能否统一默认格式? ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson2 2.0.49/2.0.50-SNAPSHOT] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test;...
### 问题描述 基于#2460,fastjson和fastjson2序列化timestamp格式不统一 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49/2.0.50-SNAPSHOT] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test; import java.sql.Timestamp; import...
### 问题描述 类似#1158, fastjson 在@JSONField(unwrapped = true)在JSON.parseObject时 与fastjson2结果不同 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson/Fastjson2 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON;...
### 问题描述 Fastjson中的@JSONField with unwrapped 异常,compared with fastjson2. ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49/2.0.50-SNAPSHOT] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON;...
### 问题描述 可能是修改了对date的处理,以下代码在fastjson 2.0.49通过,在fastjson2-2.0.49 和 fastjson 2.0.50-SNAPSHOT中异常,也许有问题。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49/2.0.50-SNAPSHOT] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import...
### 问题描述 Based on #1506,Fastjson没有反序列化@JSONFIeld的字段,并且以下的testcase中会不定反序列化A3 or A4。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import...
### 问题描述 类似 #2531,fastjson2和fastjson 在JSONObject.toJavaObject 对Enum的处理不一致。fastjson2没有抛异常而fastjson报错。 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test;...
### 问题描述 JSON.toJSONBytes后序列化异常 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson2-2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSON; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public...
### 问题描述 Based on #1965, Fastjson JSONPath.eval 为null,与fastjson2不一致 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson 2.0.49] ### 重现步骤 ```java import com.alibaba.fastjson2.JSONPath;...