[
https://issues.apache.org/jira/browse/NIFI-11509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-11509:
------------------------------------
Description:
When attempting to Validate a JSON file which has comments in it, tthe
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}
was:
When attempting to Validate a JSON file which has comments in it, tthe
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:java}
> 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
>
> When attempting to Validate a JSON file which has comments in it, tthe
> 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)