EDIFACT to JSON icon

EDIFACT to JSON

Converts an EDIFACT string to a JSON object using the ts-edifact library.

EDIFACT to JSON

AI-generated

Overview

This node converts EDIFACT data into a JSON object. EDIFACT (Electronic Data Interchange for Administration, Commerce and Transport) is a widely used standard for electronic data interchange between organizations. The node supports input either as a raw EDIFACT string or as binary data containing the EDIFACT message.

Typical use cases include:

  • Integrating legacy EDI systems with modern applications by transforming EDIFACT messages into JSON for easier processing.
  • Automating business workflows that rely on EDIFACT messages such as purchase orders, invoices, shipping notices, etc.
  • Parsing incoming EDIFACT files or streams to extract structured data for further analysis or routing.

For example, a user can provide an EDIFACT invoice message as a string or upload it as a binary file, and this node will output a JSON representation of the message content.

Properties

Name Meaning
Input Type Choose whether the EDIFACT input is provided as a String or Binary data.
EDIFACT Input (Shown if Input Type is String) Provide the EDIFACT data as a multiline string to convert.
Binary Property Name (Shown if Input Type is Binary) Specify the name of the binary property containing the EDIFACT data to read from the input item.

Output

The node outputs an array of items where each item's json field contains a single property:

  • edifactJson: An object representing the parsed EDIFACT message converted into JSON format.

No binary output is produced by this node.

Dependencies

  • This node relies on an internal EDIFACT parsing library (referred to as ts-edifact in the description) to perform the conversion.
  • No external API keys or services are required.
  • The node expects valid EDIFACT data either as a string or binary input within the workflow.

Troubleshooting

  • Common issues:
    • Providing malformed or incomplete EDIFACT data will cause parsing errors.
    • Incorrect binary property name may result in empty or undefined input data.
  • Error messages:
    • Failed to convert EDIFACT to JSON: <error message> indicates the parser encountered invalid EDIFACT syntax or structure.
    • An unknown error occurred during EDIFACT to JSON conversion suggests unexpected exceptions; verify input data integrity.
  • Resolution tips:
    • Ensure the EDIFACT input string strictly follows the EDIFACT standard syntax.
    • Confirm the binary property name matches the actual property in the incoming binary data.
    • Validate the input data before passing it to the node.

Links and References

Discussion