Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ParserConfig #505

Closed
xhygege opened this issue Jun 24, 2022 · 3 comments
Closed

ParserConfig #505

xhygege opened this issue Jun 24, 2022 · 3 comments
Labels
question Further information is requested
Milestone

Comments

@xhygege
Copy link

xhygege commented Jun 24, 2022

fastjson2中ParserConfig取消了propertyNamingStrategy属性,要实现如下转换,请问要怎么处理呢?
ParserConfig config = ParserConfig.getGlobalInstance();
config.propertyNamingStrategy = PropertyNamingStrategy.CamelCase;
jsonObj.toJavaObject(clazz, config, 0);

@xhygege xhygege added the question Further information is requested label Jun 24, 2022
@xhygege xhygege changed the title [QUESTION] ParserConfig Jun 24, 2022
@VictorZeng
Copy link
Collaborator

@xhygege JSONReader.Feature.SupportSmartMatch 是否能满足您的场景
see https://github.com/alibaba/fastjson2/blob/main/docs/features_cn.md

@wenshao wenshao added this to the 2.0.8 milestone Jun 25, 2022
wenshao added a commit that referenced this issue Jun 25, 2022
@wenshao
Copy link
Member

wenshao commented Jun 25, 2022

https://github.com/alibaba/fastjson2/releases/tag/2.0.8
问题已经修复,请用新版本

@wenshao wenshao closed this as completed Jun 25, 2022
@xhygege
Copy link
Author

xhygege commented Jun 27, 2022

谢谢解答,问题已经处理

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants