XML – Looks like this:


JSON – Looks like this:

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!