You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by bbende <gi...@git.apache.org> on 2017/10/18 14:55:11 UTC
[GitHub] nifi-registry issue #23: NIFIREG-36: Add Jackson JsonInclude filters for nul...
Github user bbende commented on the issue:
https://github.com/apache/nifi-registry/pull/23
@kevdoran thanks for taking care of this, what do you think about doing something like this?
https://github.com/apache/nifi/blob/master/nifi-commons/nifi-web-utils/src/main/java/org/apache/nifi/web/util/ObjectMapperResolver.java
You then register that as a provider with Jersey and I think whenever it marshalls JSON it will use that custom ObjectMapper.
I guess it depends if we want to make a global decision to never include nulls, but my preference would be to keep the Jackson annotations out of the domain objects if possible.
---