SyntaxFix
Write A Post
Hire A Developer
Questions
from Jackson 2.7.x+ there is a way to annotate the member variable itself:
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) private List<String> newsletters;
More info here: Jackson @JsonFormat