@Retention(CLASS) @Target({FIELD})

public @interface JsonProperty

Renames a @Mapped field in the JSON projection. The default JSON key is the field name; @JsonProperty lets a field map to snake_case or any alternative spelling without touching the Java identifier.

Methods

public abstract String value()The JSON key.

Method details

value

public abstract String value()
The JSON key.