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

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

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

[NIFI-11509] Added configuration to allow for parsing comments in JSON.

This closes #7220

Signed-off-by: Mike Thomsen <mthom...@apache.org>


> ValidateJson does not validate a source document that has comments
> ------------------------------------------------------------------
>
>                 Key: NIFI-11509
>                 URL: https://issues.apache.org/jira/browse/NIFI-11509
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When attempting to Validate a JSON file which has comments in it, the 
> validation fails with the following log message
> {code:java}
> [pool-1-thread-1] ERROR org.apache.nifi.processors.standard.ValidateJson - 
> ValidateJson[id=d096fd11-061f-4757-8719-0d55dfc02ab3] JSON processing failed 
> FlowFile[0,4778767798486.mockFlowFile,162B]: 
> com.fasterxml.jackson.core.JsonParseException: Unexpected character ('/' 
> (code 47)): maybe a (non-standard) comment? (not recognized as one since 
> Feature 'ALLOW_COMMENTS' not enabled for parser)
> {code}



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

Reply via email to