# ConvertToJson

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.Edifact/tree/main/Frends.Edifact.ConvertToJson>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                        | Description                                                                                                                                                                                                                |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| InputEdifact : `String`     | <p>Input edifact.</p><p><br>Default: <code>-</code><br>Example: <code>UNB+UNOC:3+5500000000:30+ACME:ZZ+100926:1743+SE1234567++++++1' UNH+000001+INVOIC:D:93A:UN:EDIT30' BGM+380+891206500' ... UNZ+1+SE1234567'</code></p> |
| AllowMissingUNB : `Boolean` | <p>Allow Edifact messages with missing UNB header.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                  |
| {% endtab %}                |                                                                                                                                                                                                                            |

{% tab title="Result: Result" %}

| Name            | Description                                                                                                                                |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Json : `String` | <p>Result of converting Edifact to JSON.<br>Example: <code>{ "Edifact": { "UNB": { ... } "TSINVOIC": { ... } "UNZ": { ... } } }</code></p> |
| {% endtab %}    |                                                                                                                                            |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0] - 2024-08-23

#### Changed

* Updated the Newtonsoft.Json package to version 13.0.3.

### \[1.0.0] - 2023-04-25

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
