# ConvertJsonToXml

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.CrossplatformXML/tree/main/Frends.XML.ConvertJsonToXml>

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

| Name                              | Description                                                                                                                                                                                                                                                                                        |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Json : `String`                   | <p>Json string to be converted to XML.</p><p><br>Default: <code>-</code><br>Example: <code>{ '?xml': { '@version': '1.0', '@standalone': 'no' }, 'root': { 'person': \[ { '@id': '1', 'name': 'Alan', 'url': '<http://www.google.com>' } ] } }</code></p>                                          |
| XmlRootElementName : `String`     | <p>The name for the root XML element.</p><p><br>Default: <code>-</code><br>Example: <code>root</code></p>                                                                                                                                                                                          |
| IncludeXmlDeclaration : `Boolean` | <p>Enables the Xml declaration to be included to the Xml string.</p><p>Doesn't affect to the xml when XmlRootElementName is empty.</p><p>Xml declaration needs to be in the json otherwise default xml declaration is used.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p> |
| {% endtab %}                      |                                                                                                                                                                                                                                                                                                    |

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

| Name           | Description                    |
| -------------- | ------------------------------ |
| Xml : `String` | <p>Xml string.<br>Example:</p> |
| {% endtab %}   |                                |
| {% endtabs %}  |                                |
