With EDI Webpad you can translate EDI files to JSON and from JSON back to EDI. Both editors allow you to modify the contents.
EDI file to JSON
Upload a file by clicking on the Choose file button. Upon loading the file will be displayed in the EDI Editor to the left. The file is automatically expanded so that each segment is on a new line and is easier to view and edit.
You can edit the file, e.g. change the contents of data elements or add segments. The settings menu allows you to configure an explicit model and a custom syntax set.
When you are ready to translate, hit the right-arrow blue button. This operation will both translate and validate the file.
JSON to EDI file
You can generate EDI files by modifying the contents of the JSON Editor to the right. The wrapper model must be either X12Interchange or EdifactInterchange. The transactions should match any of the available Transaction Models.
When you are ready to generate your EDI file, hit the left-arrow orange button. This operation will both translate and validate the JSON. The resulting EDI will be expanded with each segment on a new line. You can copy and save it or edit it directly to remove all carriage return, and line feeds.
If you need to generate an X12 with non-default separators, set the following items as part of the X12Interchange payload:
- Segment separator: X12Interchange.SegmentDelimiter
- Data element separator: X12Interchange.DataElementDelimiter
- Repetition separator: X12Interchange.ISA.InterchangeControlStandardsIdentifier_11
- Component data element separator: X12Interchange.ISA.ComponentElementSeparator_16
If you need to generate an EDIFACT with non-default separators, add a UNA segment before the UNB.
When your EDI file contains more that one interchange, only the first interchange is populated in the JSON Editor. If you want to edit/validate any of the remaining interchanges you'll need to manually split the file into multiple files with each interchange in its own file.