json-view
json-view copied to clipboard
Support PropertyNamingStrategy and @JsonNaming
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?
any update on this issue?