NIFI-4495: Expose the option for supressing null values on the JSON Writer

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #2218.
This commit is contained in:
Mark Payne 2017-10-18 15:46:08 -04:00 committed by Pierre Villard
parent 53e63eaf7c
commit 95e86c1f51
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ public class JsonRecordSetWriter extends DateTimeTextRecordSetWriter implements
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
final List<PropertyDescriptor> properties = new ArrayList<>(super.getSupportedPropertyDescriptors());
properties.add(PRETTY_PRINT_JSON);
properties.add(SUPPRESS_NULLS);
return properties;
}