JSON Parser with JSON Lines Selected

In the following pipeline, the JSON Parser Snap parses the valid lines from the upstream File Reader Snap and routes the invalid lines to the error view.


File Reader output with one invalid line

  1. File Reader Snap passes input lines

    The File Reader passes four lines of which one line carries an invalid data with a missing delimiter:


    File Reader output with one invalid line

  2. JSON Parser Snap parses valid lines

    The JSON Parser Snap parses the data from the upstream. Note the output preview displays the valid three lines only:


    JSON Parser output with valid lines

  3. Invalid line routed to error view

    The invalid line is routed to the error view:


    Invalid JSON line in error view

  1. Ensure the JSON Parser Snap has JSON Lines checkbox selected.
  2. Verify the File Reader output for line-based JSON input.
  3. Validate both output and error views in the Snap preview.