I recently heard about JavaScript Object Notation (JSON), and after looking it up, it seems like it\'s becoming rather popular as an alternative to the Extensible Markup Lan
JSON is a much simpler format than XML. JSON is intended only for describing data as an object hierarchy, while XML has many other features as well.
If you only need to send plain simple data, then JSON is a good alternative, as that is just what it's intended for.
If you need a more powerful way of describing your data then you would need XML, as JSON simply doesn't do anything fancy.
They're equally expressive formats. JSON is less verbose. JSON can be parsed easily in JavaScript (and other languages), and XML is parsed easily by many things too.
I think the most important consideration is what will be consuming the data - if you already have a bunch of XML-interpreting code, stick with that. If all your clients are web developers, go with JSON.