{"ok":true,"result":{"slug":"json-to-xml","name":"JSON to XML","summary":"Convert JSON to XML. Keys with the attribute prefix (default @_) become attributes; arrays become repeated elements.","description":"Convert JSON to well-formed XML in your browser. Prefixed keys become attributes, arrays become repeated elements and special characters are escaped for you.","method":"POST","endpoint":"/api/v1/tools/json-to-xml","plan":"free","mcpName":"json_to_xml","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The JSON text.","maxLength":200000},"rootName":{"type":"string","description":"Element that wraps the data when it has no single top-level key.","default":"root","maxLength":100},"attributePrefix":{"type":"string","description":"Keys starting with this prefix become XML attributes.","default":"@_","maxLength":10},"indent":{"type":"string","description":"Indentation: \"0\" for a single line, \"2\", \"4\" or \"tab\".","default":"2","enum":["0","2","4","tab"],"maxLength":200000},"declaration":{"type":"boolean","description":"Start with <?xml version=\"1.0\" encoding=\"UTF-8\"?>.","default":false}},"required":["input"]},"example":{"input":"{\"book\":{\"@_id\":\"1\",\"title\":\"Dune\",\"authors\":[\"Frank Herbert\"]}}"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-to-xml","page":"https://pithlab.com/tools/json-to-xml"}}