[BUG]偶发性,JSON.toJSONString,序列化字符串后,会丢失部分字段的数据
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
这边业务运行期间,发现偶发性的,序列化后的字符串会丢失部分字段的数据。虽然发生的时间是偶发,但是估计某几个字段,比如List, JSONObject 和 List 这几个类型的字段
### 环境信息
*请填写以下信息:*
- OS信息: [e.g.:CentOS 8.4.2105 4Core 3.10GHz 16 GB]
- JDK信息: [e.g.:Openjdk 17]
- 版本信息:[e.g.:Fastjson2 2.0.53]
### 重现步骤
*如何操作可以重现该问题:*
没法重现,但是加了日志能证明是序列化后丢失了字段,期间我还看过数据,缺少字段值没有了
### 期待的正确结果
*对您期望发生的结果进行清晰简洁的描述。*
### 相关日志输出
这个日志记录
这个日志截图能证明读取出来的数据没问题,日志没触发到
#### 附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*
Contributor guide
Research direction
Start with the JSON.toJSONString serialization path and compare the supplied logs and screenshots, focusing on List, JSONObject, and List fields. First collect the missing OS, JDK, and Fastjson2 version details and find a reproducible case; done means identifying the cause and demonstrating that serialization preserves all field values with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100