alibaba / alibaba/fastjson2

[BUG] 使用JSONObject.toJSONString()时,自动将字母大写转成

Open
#1,928 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 问题描述
*简要描述您碰到的问题。*
使用JSONObject.toJSONString()时,自动将字母大写转成

### 环境信息
*请填写以下信息:*

- OS信息: [e.g.:window10]
- JDK信息: [e.g.:Openjdk 1.8.0_312]
- 版本信息:[e.g.:Fastjson2 2.0.31]

#### 附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*
![json转换时自动把字母小写](https://github.com/alibaba/fastjson2/assets/85143522/2099ce60-efe1-4ba9-adf2-7c5b0d45b623)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with JSONObject.toJSONString() using the available issue details, then inspect the serialization entry point and related tests. Clarify which uppercase letters are changed and the expected output, along with the OS, JDK, and Fastjson2 version; done means the output preserves the intended letter casing and a regression test covers it.

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
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.