JSON 转 XML
将 JSON 文档转换为格式良好且根元素可配置的 XML。
输入
结果
使用方法
Converting JSON to XML
Press Convert. Root level keys map to elements and arrays produce repeated sibling elements.
- Paste JSON into the input editor.
- Press Convert.
- Copy or download the XML output.
常见问题
How are arrays represented?
Every array item becomes an element named after the array key.
How are invalid XML tag names handled?
Keys that are not valid XML names are sanitised so the output stays well formed.