You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY per-property override does not work, unlike its serialization counterpart (JsonFormat.Feature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED)
The text was updated successfully, but these errors were encountered:
Oddly enough, while other features are supported, implementation for this (beyond exposing value for property) is missing. Due to extensive amount of changes needed, will only go in 2.7.
cowtowncoder
changed the title
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) does not work on fields having @JsonProperty(value = "Something")
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) does not work on fields
Dec 11, 2015
@dwybourn yes, as per check-in above and closing of this issue it should work.
If not, please file a new issue with reproduction -- I prefer not opening old issues since it makes tracking of fixes more difficult, even if the root cause is same or earlier fix was incomplete.
(note: moved from FasterXML/jackson-annotations#67)
Looks like
JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY
per-property override does not work, unlike its serialization counterpart (JsonFormat.Feature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED
)The text was updated successfully, but these errors were encountered: