[QUESTION]
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
版本:2.0.35
使用:JSON.parseObject(value)
问题:
1、当值为null时,对应键值对消失
2、取消自动解码unicode
准确来说,是我传入什么样的json,经过fastjson2解析后,保持json不变
我知道JSONObject.toJSONString() ,可以解决这些问题,但是这不是我需要的
Contributor guide
Research direction
Start by reproducing the behavior through JSON.parseObject(value) with JSON containing null values and escaped Unicode, then compare the parsed result with the original input. Check whether the existing JSONObject.toJSONString() behavior clarifies the expected distinction; done means parsing preserves the key-value pairs and Unicode representation requested without requiring that serialization workaround.
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