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

[QUESTION]请问fastjson1中的ParserConfig.global.clearDeserializers() 在fastjson2有替代方案吗? #2860

Closed
panaleica opened this issue Aug 10, 2024 · 2 comments
Assignees
Labels
fixed question Further information is requested
Milestone

Comments

@panaleica
Copy link

请描述您的问题

询问有关本项目的使用和其他方面的相关问题。
请问fastjson1中的ParserConfig.global.clearDeserializers() 在fastjson2有替代方案吗?

@panaleica panaleica added the question Further information is requested label Aug 10, 2024
@wenshao wenshao added this to the 2.0.53 milestone Aug 10, 2024
@wenshao
Copy link
Member

wenshao commented Aug 10, 2024

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.53-SNAPSHOT/

最新的快照,增加了clear方法,可以如下方法使用

JSONFactory.getDefaultObjectWriterProvider().clear();
JSONFactory.getDefaultObjectReaderProvider().clear();

@wenshao wenshao added the fixed label Aug 10, 2024
@wenshao wenshao self-assigned this Aug 10, 2024
@wenshao
Copy link
Member

wenshao commented Sep 16, 2024

@wenshao wenshao closed this as completed Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants