For the complete documentation index, see llms.txt. This page is also available as Markdown.

ConvertJsonToXml

Frends Task for converting Json string to Xml string.

Task version: 1.2.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Json : String

Json string to be converted to XML.

Default: - Example: { '?xml': { '@version': '1.0', '@standalone': 'no' }, 'root': { 'person': [ { '@id': '1', 'name': 'Alan', 'url': 'http://www.google.com' } ] } }

XmlRootElementName : String

The name for the root XML element.

Default: - Example: root

IncludeXmlDeclaration : Boolean

Enables the Xml declaration to be included to the Xml string.

Doesn't affect to the xml when XmlRootElementName is empty.

Xml declaration needs to be in the json otherwise default xml declaration is used.

Default: True Example: true

Task Result

Name
Description

Xml : String

Xml string. Example:

Task Changelog

Changelog for Task Frends.XML.ConvertJsonToXml.

[1.2.0] - 2026-07-14

Changed

  • Updated outdated repository URLs

[1.1.0] - 2025-03-25

Changed

  • Update packages: System.ComponentModel.Annotations 4.7.0 -> 5.0.0 coverlet.collector 3.1.2 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0

[1.0.1] - 2024-02-20

Changed

  • Refactored code to enable simple json transformation.

  • Added feature to add default xml declaration if it's not provided in the json input.

  • Updated documentation.

  • Added [DisplayFormat(DataFormatString = "Json")] annotation to the input json field.

  • Added more tests for different situations.

Updated

  • Newtonsoft.Json to version 13.0.3.

[1.0.0] - 2023-11-28

Changed

  • Initial implementation

Last updated

Was this helpful?