alibaba / alibaba/fastjson2

无法解析不可见字符

Open
#2,122 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

![image](https://github.com/alibaba/fastjson2/assets/74517757/d2b11a4e-6667-4582-a63d-4fb51c01fd9f)
{
"used": "10238976‬"
}
上面这串JSON中末位有不可见字符调用getDouble()会报错
但是使用Jackson能正常解析
上面不可见字符的十六进制是E2 80 AC

Contributor guide

Open the contributing guide

Research direction

Start at the getDouble() entry point and reproduce the failure with the JSON shown in the issue, including the trailing E2 80 AC character. Trace how that value is parsed and compare the behavior with the expected Jackson-compatible result. Done means the provided JSON can be parsed through getDouble() without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.