« Tools for AJAX development | Main | Google Developer Day , 2007 »

My views on JSON

The key advantages of JSON I derived from my reading of the various articles and from HRA are:

* Much simpler than XML because it is not a markup language and a natural representation of data.
* JSON is better data exchange format, XML is a better document exchange format.
* JSON is easier to read for machines with no/thin client-side library.
* JSON is a natural fit for data consumption by browser clients, for example Ajax components.
* Ability to represent general data structures: records, lists and trees.
* Wikipedia entry for JSON reports parsing and generating JSON support in 21 languages.

There are some disadvantages as well:

* JSON format is hard to read for humans; for example complicated-looking syntax, like the }}]} at the end of data snippet is frightening and debugging pain.
* JSON does not have a <[CDATA[]]> feature, so it is not well suited to act as a carrier of sounds or images or other large binary payloads.
*Unlike XML, JSON does not provide any display capabilities because it is not a document markup language. JSON was not even intended for that purpose.
* JSON is not extensible - it does not need to be because it's not a document markup language.

May 2007

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Recent Comments