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]PascalCase风格的JSON字符串装成camelCase风格的对象 #3374

Open
fantasy-Kx opened this issue Mar 11, 2025 · 3 comments
Open
Labels
question Further information is requested

Comments

@fantasy-Kx
Copy link

请描述您的问题

询问有关本项目的使用和其他方面的相关问题。

现在需要将一个PascalCase风格的JSON字符串装成camelCase风格的对象,需要一个局部的配置,除了使用Response<> response = JSON.parseObject(responseStr, new TypeReference() {}, JSONReader.Feature.SupportSmartMatch); 还有其它的方式吗

@fantasy-Kx fantasy-Kx added the question Further information is requested label Mar 11, 2025
@wenshao
Copy link
Member

wenshao commented Mar 11, 2025

使用 JSONReader.Feature.SupportSmartMatch 有什么问题?

@fantasy-Kx
Copy link
Author

使用 JSONReader.Feature.SupportSmartMatch 有什么问题?

没有什么问题 只是看看还有其他的方式没有

@wenshao
Copy link
Member

wenshao commented Mar 14, 2025

也可以通过@JSONType((naming=PropertyNamingStrategy.PascalCase)

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

No branches or pull requests

2 participants