Skip to content

Support PropertyNamingStrategy and @JsonNaming #58

@kerraway

Description

@kerraway

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions