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

Update JSON Record Reader / Writer to allow for 'json per line' format

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      It is common, especially for archiving purposes, to have many JSON objects combined with new-lines in between, in order to delimit the records. It would be useful to allow record readers and writers to support this, instead of requiring that JSON records being elements in a JSON Array.

      For example, the following JSON Is considered two records:

      [
        { "greeting" : "hello", "id" : 1 },
        { "greeting" : "good-bye", "id" : 2 }
      ]
      

      It would be beneficial to also support the format:

      { "greeting" : "hello", "id" : 1 }
      { "greeting" : "good-bye", "id" : 2 }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mattyb149 Matt Burgess
                Reporter:
                markap14 Mark Payne
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: