JSON is smaller and easier to parse in JavaScript. Aside from that, there are no real advantages IMO.
Note that I am not, here, endorsing JSON over other alternatives; the same is obviously true of XML, HTML, YAML, or lots of other potential formats.
XML is quite loose, unless I use plist theres no data types which is both an advantage and a disadvantage.
That's extremely debatable.