Zoomed Image

AMSX Scripting Language - Command : jsontoxml

Summary

Convert raw JSON to an XML document using Newtonsoft

Description

Parses a JSON string into an XML document stored in the XML buffer (mdoc). Uses Newtonsoft's built-in JSON-to-XML conversion without any field-name mapping. If the command body (RawBody) is populated it is used; otherwise the current result buffer is used.

Parameters

ParameterDescription
cmdJSON string (used if RawBody is not populated)

Syntax


JsonToXML "JSON string (used if RawBody is not populated)"

Return to the AMSX Command Reference