[ https://issues.apache.org/jira/browse/NIFI-11509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718546#comment-17718546 ]
ASF subversion and git services commented on NIFI-11509: -------------------------------------------------------- Commit 2e2604a9019893888ea7cb893c1b08c4b3402b91 in nifi's branch refs/heads/support/nifi-1.x from dan-s1 [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2e2604a901 ] [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)