The @JsonProperty annotation is used to specify a different JSON key for a field in your Java class. This is useful when the JSON keys don't match your Java naming conventions. For example, you might want the 'productName' field in your Java class to be serialized as 'name' in the JSON output.
Additional Notes
What role does @JsonProperty play in JSON mapping?