json_to_xml
Convert JSON objects into well-formed XML, with options for custom root element, attribute conversion, and XML declaration.
Instructions
Convert a JSON object to well-formed XML. Supports custom root element, attribute conversion, and XML declaration toggle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON content to convert (must be an object) | |
| pretty | No | Pretty-print XML output (default: true) | |
| root_element | No | Root element name (default: "root") | |
| xml_declaration | No | Include XML declaration header (default: true) |