Enter your XML sample in the above textbox, it will be validated before converting into JSON string and then you will get JSON output. Suppose you have below sample XML
<?xml version='1.0' standalone='no'?>
<root>
<person id='1'>
<name>Alan</name>
<url>http://www.google.com</url>
</person>
<person id='2'>
<name>Louis</name>
<url>http://www.yahoo.com</url>
</person>
</root>
Output:
{
"?xml": {
"version": "1.0",
"standalone": "no"
},
"root": {
"person": [
{
"id": "1",
"name": "Alan",
"url": "http://www.google.com"
},
{
"id": "2",
"name": "Louis",
"url": "http://www.yahoo.com"
}
]
}
}