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

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

Commit 21792460fe02df3b76e0a66a3a5a36c15ee7f05f in nifi's branch 
refs/heads/support/nifi-1.x from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=21792460fe ]

NIFI-12116 Documented lack of NDJSON support in ValidateJson

This closes #7782

Signed-off-by: David Handermann <[email protected]>
(cherry picked from commit 66b68140e2303dd77d70c6dcb597ed35adf0841b)


> Document lack of support for newline-delimited JSON in ValidateJson
> -------------------------------------------------------------------
>
>                 Key: NIFI-12116
>                 URL: https://issues.apache.org/jira/browse/NIFI-12116
>             Project: Apache NiFi
>          Issue Type: Task
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> While using the ValidateJson processor as a pass through to determine whether 
> a file is Json we noticed when passing multiline JSON e.g.
>  
> {code:java}
> {"votes": {"funny": 2, "useful": 5, "cool": 1}, "user_id": "harveydennis", 
> "name": "Jasmine Graham", "url": 
> "http://example.org/user_details?userid=harveydennis";, "average_stars": 3.5, 
> "review_count": 12, "type": "user"}
> {"votes": {"funny": 1, "useful": 2, "cool": 4}, "user_id": "njohnson", 
> "name": "Zachary Ballard", "url": 
> "https://www.example.com/user_details?userid=njohnson";, "average_stars": 3.5, 
> "review_count": 12, "type": "user"}
> {"votes": {"funny": 1, "useful": 0, "cool": 4}, "user_id": "david06", "name": 
> "Jonathan George", "url": "https://example.com/user_details?userid=david06";, 
> "average_stars": 3.5, "review_count": 12, "type": "user"}
> {"votes": {"funny": 6, "useful": 5, "cool": 0}, "user_id": "santiagoerika", 
> "name": "Amanda Taylor", "url": 
> "https://www.example.com/user_details?userid=santiagoerika";, "average_stars": 
> 3.5, "review_count": 12, "type": "user"}
> {"votes": {"funny": 1, "useful": 8, "cool": 2}, "user_id": "rodriguezdennis", 
> "name": "Jennifer Roach", "url": 
> "http://www.example.com/user_details?userid=rodriguezdennis";, 
> "average_stars": 3.5, "review_count": 12, "type": "user"}
>  
> {code}
> and specifying the schema as {} (i.e. empty schema) the flowfile content was 
> sent to the 'valid' relationship. This should have been sent to the invalid 
> relationship as technically it is not valid JSON.



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

Reply via email to