json字符串中如果有注释,转换时会报错
Open
bug
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
*简要描述您碰到的问题。*
json字符串中如果有注释,转换时会报错,如 // ,/**xxx*/,在fastjson中没有这种情况
### 环境信息
fastjson2 : 2.0.52
### 期待的正确结果
json转为实体时如果,json字符串中有注释,也支持
### 相关日志输出
*请复制并粘贴任何相关的日志输出。*
Contributor guide
Research direction
The issue names fastjson2 2.0.52 but no source file or test. Start by reproducing deserialization with JSON containing // and /**xxx*/ comments, then locate the parser entry point and add regression coverage. Done means commented JSON can be converted to an entity without an error.
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
- 35/100