alibaba / alibaba/fastjson2

发现fastjson2的序列化会受到jackson的一些注解影响比如@JsonIgnore,了解到可以通过JVM参数全局关闭,请问下可以在JSON.toString或者FastJsonHttpMessageConverter里单独设置关闭吗?

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

Description

发现fastjson2的序列化会受到jackson的一些注解影响比如@JsonIgnore,了解到可以通过JVM参数全局关闭,请问下可以在JSON.toString或者FastJsonHttpMessageConverter里单独设置关闭吗?

Contributor guide

Open the contributing guide

Research direction

Start by examining the JSON.toString entry point and FastJsonHttpMessageConverter configuration mentioned in the issue, then trace how the JVM-level Jackson-annotation setting is applied. The work is complete when either entry point can independently disable the effect of annotations such as @JsonIgnore, with coverage demonstrating the setting does not require a global JVM change.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend-api-design
Issue type
Feature
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.