mirror of https://github.com/apache/nifi.git
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:
parent
53e63eaf7c
commit
95e86c1f51
|
@ -71,6 +71,7 @@ public class JsonRecordSetWriter extends DateTimeTextRecordSetWriter implements
|
||||||
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
|
protected List<PropertyDescriptor> getSupportedPropertyDescriptors() {
|
||||||
final List<PropertyDescriptor> properties = new ArrayList<>(super.getSupportedPropertyDescriptors());
|
final List<PropertyDescriptor> properties = new ArrayList<>(super.getSupportedPropertyDescriptors());
|
||||||
properties.add(PRETTY_PRINT_JSON);
|
properties.add(PRETTY_PRINT_JSON);
|
||||||
|
properties.add(SUPPRESS_NULLS);
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue