Convert local XML and JSON
abox_xml_jsonConverts XML to JSON or JSON to XML in local files using attribute, text, and repeated-child mappings, reporting lossy conversions while refusing ambiguous names, DTDs, and custom entities.
Instructions
Convert XML to JSON using @ attributes, #text and repeated-child arrays, or JSON to XML under a fixed root element. Verifies the exact existing source mapping, which is lossy: XML values are strings, mixed child/text order and comments can be lost, and JSON null/empty containers collapse. Refuses ambiguous name collisions, DTDs and custom entities. Contents remain in the local output. Requires no browser.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>",
"direction": "<direction>"
},
"name": "abox_xml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | 2 | |
| direction | Yes | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |