We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
序列化时在最前或最后添加内容 fastjson1有BeforeFilter,AfterFilter可以实现,fastjson2中没有找到相关方法
用户表有部门ID,希望在转json时可以动态增加部门名称字段 `public interface PropertyPreFilter extends Filter { default void process(JSONWriter writer, Object source, String name,Object value){
} }` 有JSONWriter,原对象、属性名、属性值,便可追加一个属性
The text was updated successfully, but these errors were encountered:
https://github.com/alibaba/fastjson2/releases/tag/2.0.5 问题已修复,请用新版本
Sorry, something went wrong.
No branches or pull requests
请描述您的需求或者改进建议
序列化时在最前或最后添加内容
fastjson1有BeforeFilter,AfterFilter可以实现,fastjson2中没有找到相关方法
请描述你建议的实现方案
用户表有部门ID,希望在转json时可以动态增加部门名称字段
`public interface PropertyPreFilter extends Filter {
default void process(JSONWriter writer, Object source, String name,Object value){
}
}`
有JSONWriter,原对象、属性名、属性值,便可追加一个属性
The text was updated successfully, but these errors were encountered: