Skip to content
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

从fastjson升级到fastjson2之后,自定义的ObjectSerializer 该如何迁移到fastjson2? #77

Closed
myaniu opened this issue Apr 25, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@myaniu
Copy link

myaniu commented Apr 25, 2022

温少,您好,问一下,从fastjson升级到fastjson2之后,自定义的ObjectSerializer 该如何迁移到fastjson2。我看可以实现ObjectReader/ObjectWriter,自己实现之后,改如何注册这个Writer/Reader呢?

@wenshao
Copy link
Member

wenshao commented Apr 25, 2022

抱歉,这个注册API需要做一些调整,等5.3日发布2.0.2版本我再写文档

@wenshao wenshao added this to the 2.0.2 milestone Apr 25, 2022
@wenshao wenshao added the bug Something isn't working label Apr 25, 2022
@myaniu
Copy link
Author

myaniu commented Apr 25, 2022

好的,谢谢温少。

@wenshao wenshao modified the milestones: 2.0.2, 2.0.3 May 2, 2022
@wenshao
Copy link
Member

wenshao commented May 2, 2022

参考这个文档
https://github.com/alibaba/fastjson2/wiki/register_custom_reader_writer_cn

还在完善文档中,如果有问题请反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants