alibaba / alibaba/fastjson2

为什么jackson的@JsonIgnore过滤注解会影响fastJson2的序列化?

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

Description

### 问题描述
*简要描述您碰到的问题。*

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

- OS信息: [e.g.:win10]
- JDK信息: [e.g.:jdk17]
- 版本信息:[e.g.:Fastjson2 2.0.52]

### 重现步骤
*如何操作可以重现该问题:*

1. 使用 `xxx.xxx` 方法
2. 输入 `...` 数据
3. 出现 `...` 错误
```java
//可在此输入示例代码
```

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

### 相关日志输出
*请复制并粘贴任何相关的日志输出。*

#### 附加信息
![截图_20240801214652](https://github.com/user-attachments/assets/d5241665-4db1-4730-a835-651f4b0c7a5d)
![截图_20240801214836](https://github.com/user-attachments/assets/497f5b70-9db5-4101-8083-e41211c6cbb3)

Contributor guide

Open the contributing guide

Research direction

The issue names no source files, tests, entry points, or complete reproduction. Start by reviewing the attached screenshots and collecting the missing OS, JDK, Fastjson2 version, model, and serialization steps; done means a minimal Java reproduction explains whether @JsonIgnore changes Fastjson2 output and a regression test captures the expected behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.