|
|
|
|
|
JSONToXML (Function) In french: JSONVersXML Converts a JSON string to XML. let json = StringToJSON(" {"name": "TestName" ,"id": 2 ,"true": "True" ,"list": [5,5,6,2,47] } ") Â let xml = JSONToXML(json) Trace(xml..XMLSource) Â // The result will be // <document> // Â <name>TestName</name> // Â <id>2</id> // Â <true>true</true> // <list> // Â Â <item>5</item> // Â Â <item>5</item> // Â Â <item>6</item> // Â Â <item>2</item> // Â Â <item>47</item> // Â </list> // </document> Syntax
<Result> = JSONToXML(<JSON to convert> [, <Converter>])
<Result>: xmlNode variable xmlNode variable that corresponds to the converted JSON string. <JSON to convert>: JSON variable Name of the JSON variable to be converted. <Converter>: Optional JSONXMLConverter variable
Name of the JSONXMLConverter variable that corresponds to the custom conversion standard to be applied. Caution: This customization requires a good knowledge of XML. If this parameter is not specified, a default standard will be used for the conversion: the default values of the JSONXMLConverter variable are used.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|