{"ok":true,"data":{"tool":{"slug":"xml-to-json-converter","name":"XML to JSON Converter","section":"tools","category":"Developer Tools","subcategory":"Data Formatters","url":"/tools/data-formatters/xml-to-json-converter/","status":"live","api_mode":"not_available","webmcp_mode":"navigate_only","processing_mode":"client-side","privacy_mode":"no-data-stored","summary":"Convert XML elements and attributes into structured JSON.","input_schema":{"type":"object","properties":{"xml":{"type":"string","description":"Enter xml source for this calculation."},"indent_spaces":{"type":"number","description":"Enter json indentation for this calculation.","minimum":0,"maximum":8}},"required":["xml","indent_spaces"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"json":{"type":"string","description":"JSON output calculated by the tool."},"element_count":{"type":"number","description":"Elements calculated by the tool."},"attribute_count":{"type":"number","description":"Attributes calculated by the tool."}},"additionalProperties":false},"examples":[{"title":"XML to JSON Converter worked example","description":null,"input":{"xml":"<project live=\"true\"><name>UtilityPages</name><tools><tool>calculator</tool><tool>converter</tool></tools></project>","indent_spaces":2},"output":{"json":"{\n  \"project\": {\n    \"$attributes\": {\n      \"live\": \"true\"\n    },\n    \"name\": \"UtilityPages\",\n    \"tools\": {\n      \"tool\": [\n        \"calculator\",\n        \"converter\"\n      ]\n    }\n  }\n}","element_count":5,"attribute_count":1}}],"capability":null}},"meta":{"api_status":"preview","execution":"unavailable"},"request_id":"a9471f2f280a81ebdce04f4a"}