[ 
https://issues.apache.org/jira/browse/NIFI-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603446#comment-16603446
 ] 

ASF GitHub Bot commented on NIFI-3344:
--------------------------------------

Github user nalewis commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2987#discussion_r215029119
  
    --- 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 --
    
    Pushed an update, thanks! While we are looking at that property, is there 
any reason that the TRANSFORM_CACHE_SIZE property (Just above pretty print) is 
the only one in this processor that isn't 'public'?


> 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)

Reply via email to