documentation home

Json Field Naming

By default, Jackson uses JavaBean property names as JSON field names. You can override this behavior. If you did, you need to tell Miredot which strategy you're using. You can do this as follows:

Maven
<configuration>
    <restModel>
        <fieldNamingStrategy>LowerCaseWithUnderscores</fieldNamingStrategy>
    </restModel>
</configuration>
Gradle
miredot {
    restModel {
        fieldNamingStrategy = 'Pascal'
    }
}

Allowed values are:

  • LowerCaseWithUnderscores
  • Pascal

We do no currently support custom naming strategies nor the @JsonNaming annotation.