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.
...
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.
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:
...