# CreateFromJson

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.CreateFromJson>

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

| Name                        | Description                                                                                                                                                                                                                                                                    |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| CreateUNBHeader : `Boolean` | <p>Should the UNB header be created, if not included in input document.</p><p><br>Default: <code>False</code><br>Example: <code>true</code></p>                                                                                                                                |
| HeaderData : `HeaderData`   | <p>UNB header data. Used if CreateUnbHeader is set to true.</p><p><br>Default: <code>-</code><br>Example: <code>-</code></p>                                                                                                                                                   |
| Json : `String`             | <p>Edifact in JSON format. The JSON format should be the same</p><p>as produced by Frends when converting Edifact documents to</p><p>JSON.</p><p><br>Default: <code>-</code><br>Example: <code>{ "Edifact": { "UNB": { ... } "TSINVOIC": { ... } "UNZ": { ... } } }</code></p> |
| {% endtab %}                |                                                                                                                                                                                                                                                                                |

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

| Name               | Description                                                                                                                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Edifact : `String` | <p>Result of creating Edifact from JSON.<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> |
| {% 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 %}
