Process a Single JSON-formatted Record

This example demonstrates how to use a single COBOL Structure defined with a JSON format being processed from JSON to COBOL formatted output for postprocessing by a downstream Snap.

Download this Pipeline

Configure the File Reader Snap to accept the data for processing. Provide the filename and leave the other settings with default values.

Next, provide the JSON Parser Snap to output the contents as a document downstream. Leave all values defaulted for this step.

Next, provide the Cobol Copybook Formatter Snap to handle the incoming data and output a document downstream. Provide a valid matching Copybook to handle the incoming data and modify the additional settings based on the requirements for that Copybook.

The pipeline is now ready to process the file and produce the formatted document. Following pipeline validation, you can preview the output: