Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11509

ValidateJson does not validate a source document that has comments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-M1, 1.22.0
    • None
    • None

    Description

      When attempting to Validate a JSON file which has comments in it, the validation fails with the following log message

      [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)
      

      Attachments

        Issue Links

          Activity

            People

              dstiegli1 Daniel Stieglitz
              dstiegli1 Daniel Stieglitz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m