I have this JSON:
{
animals:{
dog:[
{
name:'Rufus',
breed:'labrador'
},
{
name:'Marty',
breed:'whippet'
}
],
cat:{
name:'Matilda'
}
}
}
Why is it that it translates to this:
<animals>
<dog>
<name>Rufus</name>
<breed>labrador</breed>
</dog>
<dog>
<name>Marty</name>
<breed>whippet</breed>
</dog>
<cat name="Matilda"/>
</animals>
and not this:
<animals>
<dog name = "Rufus" breed = "labrador"/>
<dog name = "Marty" breed = "whippet"/>
<cat name="Matilda"/>
</animals>
Thaaaaaaaaanks!
Your buddy,
gooshgoosh