alibaba / alibaba/fastjson2

[QUESTION]在JSON.parseObject 中使用filter未生效

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

Description

在使用JSON2的过程中,调用JSON.parseObject(
String text,
Class clazz,
Filter filter,
JSONReader.Feature... features
)方法 设置filter后没有效果 无法进入ValueFilter内部的方法
如果返序列化不支持设置filter,请问如果想在返序列化的过程中进行,对字段的处理 该如何实现 最好不使用注解的方式实现

Contributor guide

Open the contributing guide

Research direction

Start with the JSON.parseObject(String, Class, Filter, JSONReader.Feature...) overload and trace whether the supplied Filter reaches ValueFilter during deserialization. Check the relevant behavior and existing tests or documentation; done means the observed behavior is explained and a supported non-annotation approach, or a reproducible fix, is identified.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.