FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Add `JsonFormat.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT` #134

Closed cowtowncoder closed 4 years ago

cowtowncoder commented 6 years ago

There is already DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, but that is global setting. Would be good to have per-property counterpart.

cowtowncoder commented 4 years ago

Hmmh. With 2.12 there is the new CoercionConfigs set up:

https://github.com/FasterXML/jackson-databind/issues/2113

which will cover (some of?) the use case(s); but also would make this feature more difficult to implement. So unless that feature proves to have significant gaps (it has much wider applicability, so should cover more cases in general, but sometimes there are still also gaps), will close this issue.