[QUESTION] 高版本JSON.parse 问题
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
**问题描述**
JSON.parse("012abena") 解析问题
在fastjson 1.2.27,上诉解析结果原样输出. 但是在高版本中 2.0.33版本中输出 0.
**环境信息**
OS信息: windows
JDK信息: 1.8
版本信息: fastjson 2.0.33
**重现步骤**
1. 创建一个 String对象: String str = "000Ant";
2. 使用 JSON.parse(str)
3. 输出结果: 0
**期待正确结果**
"000Ant"
Contributor guide
Research direction
Start at the JSON.parse entry point and reproduce the reported difference with "012abena" or "000Ant" on fastjson 1.2.27 and 2.0.33 under JDK 1.8. Compare the observed result with the stated expectation and determine whether the newer behavior is an unintended regression; the issue is complete when that behavior is verified and its intended handling is established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100