I am trying to use jsonFactoryDecorator with LoggingEventCompositeJsonEncoder through XML configuration but the decorator appears to be ignored. I defined a custom JsonFactoryDecorator that makes null fields not be serialized. However, it doesn't seem to be running as fields with null are still serialized. When I define all my configuration through code with no xml, it works fine.
I am trying to use
jsonFactoryDecorator
withLoggingEventCompositeJsonEncoder
through XML configuration but the decorator appears to be ignored. I defined a customJsonFactoryDecorator
that makes null fields not be serialized. However, it doesn't seem to be running as fields with null are still serialized. When I define all my configuration through code with no xml, it works fine.XML + Java:
Only Java:
Test: