You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2023/06/08 15:32:00 UTC

[jira] [Updated] (NIFI-11509) ValidateJson does not validate a source document that has comments

     [ https://issues.apache.org/jira/browse/NIFI-11509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann updated NIFI-11509:
------------------------------------
    Issue Type: Improvement  (was: Bug)

> 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: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>             Fix For: 2.0.0, 1.22.0
>
>          Time Spent: 20m
>  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)