Zoomed Image

AMSX Scripting Language - Command : jsontoxmltable

Summary

Convert a JSON string to XML using explicit record and field path mappings

Description

Parses the JSON in the current result buffer and maps it to an XML document using JSONPath expressions. Both the result buffer and the XML document buffer (mdoc) are updated. Field paths can include optional formatting instructions. Use this when the JSON structure does not map cleanly to a simple record/field layout.

Parameters

ParameterDescription
cmdJSONPath to the array node containing each record
Argument 0Field map: comma-separated list of fieldname:jsonpath pairs (relative to each record), or fieldname:instruction:jsonpath for formatted values
Argument 11 to compress output using field tags (default true); 0 to skip compression

Syntax


JsonToXMLTable "JSONPath to the array node containing each record", "Field map: comma-separated list of fieldname:jsonpath pairs (relative to each record), or fieldname:instruction:jsonpath for formatted values", "1 to compress output using field tags (default true); 0 to skip compression"

Return to the AMSX Command Reference