XML uses a tag structures for presenting items, like
<tag>item</tag>
,
so an XML document is a set of tags nested into each other.
And JSON syntax looks like a construction from Javascript language, with all stuff like lists and dictionaries:
{
'attrib' : 'value',
'array' : [1, 2, 3]
}
So if you use JSON it's really simple to use a JSON strings in many script languages, especially Javascript and Python.