-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]嵌套类过滤指定字段,SimplePropertyPreFilter使用时序列化错误 #2384
Comments
上面的例子不能运行,可以帮忙提供能运行重新问题的带么? |
@wenshao 重新修改了代码,可以直接运行的。之前是手打的伪代码 |
在1.2.70版本这么写是可以用的。只不过之前是SerializeFilter,现在变成了PropertyPreFilter |
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.49-SNAPSHOT/ |
wenshao
added a commit
that referenced
this issue
Apr 13, 2024
ok 多谢,我试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
有嵌套类时,A类里有B和C对象,对A的数组进行序列化时,添加了对B和C的字段过滤,但是不好用,直接返回[{}]
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
期待的正确结果
相关日志输出
[{}]
The text was updated successfully, but these errors were encountered: