XML to JSON Converter
Parse XML into JSON with attribute preservation (@attr) and text nodes (#text). Great for inspecting SOAP responses, RSS feeds, sitemaps, and legacy XML APIs.
Ringkasan alat
Alat ini menerima input berstruktur dan mengembalikan output deterministik dalam pelayar tanpa muat naik pelayan.
- Nama alat
- XML to JSON Converter
- Niat input
- Sediakan kandungan sumber untuk diubah, disahkan atau dianalisis.
- Niat output
- Terima output ternormal yang sesuai untuk disalin, digunakan semula atau dinyahpepijat.
- Contoh input
- <book><title>Dune</title><author>Frank Herbert</author><year>1965</year></book>
- Contoh output
- { "book": { "title": "Dune", "author": "Frank Herbert", "year": "1965" } }
Paste XML above and click Convert to JSON.
Pengenalan alat
Parse XML into JSON with attribute preservation (@attr) and text nodes (#text). Great for inspecting SOAP responses, RSS feeds, sitemaps, and legacy XML APIs.
Gambaran keseluruhan alat
The parser reads elements, attributes, text content, and CDATA sections, ignoring XML declarations and comments. Repeated siblings with the same tag name are grouped into a JSON array. Attributes are prefixed with @ and mixed text with #text, so the structure round-trips sensibly. Turn attribute preservation off if you only care about the text content.
Kes penggunaan
- Inspect a SOAP response inline without a debugger
- Convert an RSS feed into JSON for your news reader
- Migrate legacy XML fixtures to JSON-based tests
- Pipe an XML sitemap into a URL-auditing script
Contoh input/output
<book><title>Dune</title><author>Frank Herbert</author><year>1965</year></book>
{
"book": {
"title": "Dune",
"author": "Frank Herbert",
"year": "1965"
}
}<book id="42" isbn="0441013597"><title>Dune</title></book>
{
"book": {
"@id": "42",
"@isbn": "0441013597",
"title": "Dune"
}
}<rss version="2.0"><channel><item><title>Hello</title></item><item><title>World</title></item></channel></rss>
{
"rss": {
"@version": "2.0",
"channel": {
"item": [
{ "title": "Hello" },
{ "title": "World" }
]
}
}
}Soalan lazim
Is this XML to JSON converter free?+
What are @ and # prefixes in the output?+
What XML features are supported?+
How are repeated tags handled?+
Can it parse SOAP, RSS, or sitemap XML?+
Terokai lebih banyak alat
Temui utiliti berkaitan dalam kategori Data di bawah.
Alat berkaitan
Utiliti pilihan yang mungkin berguna untuk anda