XML vs. JSON

XML – Looks like this:
<user>
<name>tom</name>
<last_name>jackson</last_name>
<email>t.jackson@jackson.com</email>
</user>

vs.

JSON – Looks like this:
user{name:tom,last_name:jackson,email:t.jackson@jackson.com}

JSON reminds me of how a lighttpd configuration file is able to hold script in it. Meaning the file that hold information, holds simple code so you have less info to process. JSON can send arrays. So instead of XML parser reading through a node value and creating an array, JSON just sends the array! Instead of an XML parser that creates objects and its properties, JSON just sends the object with it’s properties.

So in the end, JSON just sends you the data you would just end up making with an XML file. Currently ActionScript 3.0 is going to support JSON, and so does JavaScript, but unless you are managing and sending large amounts of data, XML is good for communication… very good!