json-view icon indicating copy to clipboard operation
json-view copied to clipboard

Support PropertyNamingStrategy and @JsonNaming

Open kerraway opened this issue 7 years ago • 1 comments

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?

kerraway avatar May 16 '18 05:05 kerraway

any update on this issue?

ajaysharmamca avatar Feb 03 '19 16:02 ajaysharmamca