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
One possible way to implement this: add a new property or properties for @JsonFormat -- seems like it'd be the relevant existing annotation to use.
I think this should also cover the related SerializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED as well.
cowtowncoder
changed the title
Annotation for DeserializationConfig.Feature ACCEPT_SINGLE_VALUE_AS_ARRAY
Annotation for DeserializationConfig.Feature ACCEPT_SINGLE_VALUE_AS_ARRAY (via @JsonFormat(with=Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY))
Jun 18, 2015
Note: will be implemented as somewhat general-purpose facility, extension to @JsonFormat with new properties with and without, and enumeration JsonFormat.Feature that defines possible features to enable/disable. The reason latter is needed (instead of referring to SerializationFeature, DeserializationFeature) is that annotation package does not (and can not) depend on jackson-databind, so there will be bit of redundancy. On plus side this does allow carefully selecting kinds of features that can and should be supported, as well as possibly adding things for which there is no databind-level feature.
I would like to configure that property per-class, using annotations.
The text was updated successfully, but these errors were encountered: