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

Support PropertyNamingStrategy and @JsonNaming #58

Open
kerraway opened this issue May 16, 2018 · 1 comment
Open

Support PropertyNamingStrategy and @JsonNaming #58

kerraway opened this issue May 16, 2018 · 1 comment

Comments

@kerraway
Copy link

First of all, Thanks for your library.

I use it in my spring boot project. And I need snake_case property name in result json.
This is my config:

@Bean
public JsonViewSupportFactoryBean views() {
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
    return new JsonViewSupportFactoryBean(objectMapper);
}

But it doesn't work, I just get camelCase property name.
And I try @JsonNaming on classes, it doesn't work neither.

Does json-view not support custom property naming strategy?

@ajaysharmamca
Copy link

any update on this issue?

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

No branches or pull requests

2 participants