[
https://issues.apache.org/jira/browse/NIFI-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603427#comment-16603427
]
ASF GitHub Bot commented on NIFI-3344:
--------------------------------------
Github user alopresto commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2987#discussion_r215021556
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoltTransformJSON.java
---
@@ -130,6 +130,15 @@
.required(true)
.build();
+ public static final PropertyDescriptor PRETTY_PRINT = new
PropertyDescriptor.Builder()
+ .name(("Pretty Print"))
--- End diff --
There's an extra set of parentheses here, and the `name` field is usually
formatted like `pretty_print` because it is used in XML object resolution. The
`displayName` field below is used for the human-readable and changeable value
that won't affect object resolution during flow loading.
> Enable JoltTransformJSON processor to have option to pretty print
> -----------------------------------------------------------------
>
> Key: NIFI-3344
> URL: https://issues.apache.org/jira/browse/NIFI-3344
> Project: Apache NiFi
> Issue Type: New Feature
> Affects Versions: 1.1.1
> Reporter: Elli Schwarz
> Priority: Major
>
> It would be nice if a Nifi property could be set on the JoltTransformJSON
> processor to enable/disable pretty printing of the JSON output. (For
> performance reasons, I assume that some users might want it off.)
> Currently, the code uses the Jolt library's method JsonUtils.toJsonString(),
> but there's also a toPrettyJsonString() method that can be used.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)