Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

This article is posted on the CDAP doc wiki and will be maintained here: https://cdap.atlassian.net/wiki/spaces/DOCS/pages/1162707281/Parsing+Prettified+JSON

This article describes how to build a pipeline to parse a prettified JSON file.

...

  1. Configure the source format to be blob. Configuring the format to blob reads the entire content of file that allows the prettified JSON file to be parsed.

    Image RemovedImage Added

  2. Configure the output schema to be bytes.

...

Step 2. Convert the records read to String

Use a projection Projection transform to convert the input bytes to string:

...