PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 开发

XML 转 JSON.

将 XML 文本解析为 JSON,可选择保留属性并去除多余空白。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

LOCAL PROCESSING · NO ACCOUNTUpdates as you type
23 characters

DTDs and entity declarations are rejected. Text stays as strings; mixed content is not a lossless round trip.

使用XML 转 JSON的步骤

输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

DTDs and entity declarations are rejected. Text stays as strings; mixed content is not a lossless round trip.

Parse XML text into JSON with optional attributes and whitespace trimming. DTDs and entity declarations are rejected. Text stays as strings; mixed content is not a lossless round trip.

<user id="1">Sam</user> → JSON data