alibaba / alibaba/fastjson2

[BUG]消息转换器会将符号转义

Open
#2,270 5 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

### 问题描述
*SpringBoot2.X配置了消息转换器,对于符号会转义*

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

- JDK信息:亚马逊JDK-17
- 版本信息:2.0.45

### 重现步骤
*如何操作可以重现该问题:*
![image](https://github.com/alibaba/fastjson2/assets/29773167/ed7e4b34-62c4-4fa6-9c33-9e052f131dc5)

![image](https://github.com/alibaba/fastjson2/assets/29773167/fab1a7a8-21ff-47a9-8956-7f1d8867fdf4)

### 期待的正确结果
*对您期望发生的结果进行清晰简洁的描述。*

![image](https://github.com/alibaba/fastjson2/assets/29773167/5dc84cb4-386e-4a41-bb36-4db10a261b8a)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior in a Spring Boot 2.x application using fastjson2 2.0.45 and the message converter, with the Amazon JDK 17 environment described. Compare the converter output with the expected result shown in the issue images; the report does not name source files or tests, so the relevant converter entry point must first be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.