I\'m using MappingJacksonJsonView to serialize to JSON a class, however, I\'d like to be able to rename some of the fields from the default name based on the getter name.
You should be able to qualify using @JsonProperty.
@JsonAutoDetect(getterVisibility = Visibility.NONE)
public interface Picture {
@JsonSerialize
@JsonProperty("name")
String getName();
@JsonSerialize
@JsonProperty("delete_url")
String getDeleteUrl();
//...
Have you tried using the @JsonProperty annotation?
"Defines name of the logical property, i.e. Json object field name to use for the property: if empty String (which is the default), will use name of the field that is annotated."