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.
टूल सारांश
यह टूल संरचित इनपुट लेता है और सर्वर अपलोड के बिना ब्राउज़र में नियतात्मक आउटपुट देता है।
- टूल का नाम
- XML to JSON Converter
- इनपुट उद्देश्य
- बदलने, सत्यापित करने या विश्लेषण करने के लिए स्रोत सामग्री प्रदान करें।
- आउटपुट उद्देश्य
- कॉपी, पुन: उपयोग या डीबगिंग के लिए सामान्यीकृत आउटपुट प्राप्त करें।
- उदाहरण इनपुट
- <book><title>Dune</title><author>Frank Herbert</author><year>1965</year></book>
- उदाहरण आउटपुट
- { "book": { "title": "Dune", "author": "Frank Herbert", "year": "1965" } }
Paste XML above and click Convert to JSON.
टूल परिचय
Parse XML into JSON with attribute preservation (@attr) and text nodes (#text). Great for inspecting SOAP responses, RSS feeds, sitemaps, and legacy XML APIs.
टूल अवलोकन
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.
उपयोग के मामले
- 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
इनपुट/आउटपुट उदाहरण
<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" }
]
}
}
}अक्सर पूछे जाने वाले प्रश्न
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?+
और टूल्स खोजें
श्रेणी में संबंधित उपयोगिताएँ खोजें डेटा नीचे।
संबंधित टूल्स
सावधानी से चुनी गई उपयोगिताएँ जो आपको उपयोगी लग सकती हैं