[
https://issues.apache.org/jira/browse/NIFI-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304871#comment-17304871
]
Dorian Bugeja commented on NIFI-8342:
-------------------------------------
Can confirm that 1.13.2 fixes the issue reported
> SplitJson corrupting flowfile content
> -------------------------------------
>
> Key: NIFI-8342
> URL: https://issues.apache.org/jira/browse/NIFI-8342
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.13.1
> Reporter: Dorian Bugeja
> Priority: Major
> Fix For: 1.13.2
>
> Attachments: SplitJson_corrupted_output.xml,
> image-2021-03-18-17-35-20-406.png
>
>
> When performing a SplitJson on an array of complex json files where the first
> record has a longer content/text field
> {code:java}
> [ {
> "brand_id" : null,
> "table_name" : "xx",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> }, {
> "brand_id" : null,
> "table_name" : "x",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> } ]{code}
> an invalid json is generated (content looks file, but subsequent
> EvaluationJsonPath is unable to parse the object). If first table_name value
> is set to x, no issue is encountered
> !image-2021-03-18-17-35-20-406.png|width=917,height=199!
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)