Parse EDIFACT data into JSON

The following example demonstrates a simple pipeline that consumes EDIFACT data using the Constant Snap and parses this data into a structured JSON document using the EDI Parser Snap.



Download this Pipeline
  1. Use a Constant Snap to provide the EDIFACT binary to the pipeline.


  2. In the EDI Parser settings, select the Version and EDIFACT type that match the input data (e.g., D00A and aperak).


    When the Enable tree structure option is selected, the JSON output is organized hierarchically — child segments are nested inside their parent segments, clearly showing the relationships between them:


    Deselecting this option, however, will result in a flat array of segments, which may be useful if you want to process each segment individually:


To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.