Converts the given Json string to an XML document.

Syntax

Smartsite SXML CopyCode image Copy Code
xml xml.fromjson(string jsonString)
xml xml.fromjson(string jsonString, string rootElementName)

Parameters

Name Data Type Description
jsonString String The json string.
rootElementName String Name of the root element to use for creating the Xml.

Return Value

Data Type Description
XML Xml
SXML