You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/04/21 18:59:00 UTC

[jira] [Commented] (NIFI-13591) Honor newline in JSLTTransformJSON

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

ASF subversion and git services commented on NIFI-13591:
--------------------------------------------------------

Commit 14a79448b5eb612d9a19b2029ccf6a618ebcfd4a in nifi's branch refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=14a79448b5e ]

NIFI-13591 Added support for JSON Lines to JSLTTransformJSON (#11141)

Signed-off-by: David Handermann <ex...@apache.org>

> Honor newline in JSLTTransformJSON
> ----------------------------------
>
>                 Key: NIFI-13591
>                 URL: https://issues.apache.org/jira/browse/NIFI-13591
>             Project: Apache NiFi
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>            Reporter: Anders
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>         Attachments: JSLT.json
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> JsonRecordSetWriter has an option for Output Grouping. Either array or "One Line Per Object" (jsonlines), where the jsonlines output is a fairly common usecase.
> The JSLTTransformJSON processor has a setting for Transformation Strategy:
> "Each JSON Object"
> This works on each json object in an array, and works as expected.
> "Entire Flowfile"
> This sort-of works with the jsonlines/NDJSON flowfiles, and each json object gets transformed. However, it strips the newline, so the flowfile just becomes one long line with all the objects one after the other.
> {code:java}
> {..}
> {..}
> {..}
> {..}
> {code}
> becomes
> {code:java}
> {..} {..} {..} {..}
> {code}
> It would be useful if the newline was presereved. Either by changing the "Entire FlowFile" behaviour, or adding some new setting.
> Attached a simple template.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)