« Re: Error when adding links to posts | Main | AJACS uses Yahoo Weather instead of Weatherbug »

JSON: The Fat-free alternative to XML

XML provides two enormous advantages as a data representation language:
1. It is text-based.
2. It is position-independent.
But XML is not well suited to data-interchange. XML has big problems as a data-interchange format, but the disadvantages are compensated for by the benefits of interoperability and openness.

JSON has all the advantages as XML, but is much better suited to data-interchange.JSON promises the same benefits of interoperability and openness, but without the disadvantages. Here is a comparison between XML and JSON.

Here are some comparisons between XML and JSON.
Simplicity
XML is simpler than SGML, but JSON is much simpler than XML. JSON has a much smaller grammar and maps more directly onto the data structures used in modern programming languages.

Extensibility
JSON is not extensible because it does not need to be. JSON is not a document markup language, so it is not necessary to define new tags or attributes to represent data in it.

Interoperability
JSON has the same interoperability potential as XML.

Openness
JSON is at least as open as XML, perhaps more so because it is not in the center of corporate/political standardization struggles.

Here is a link to the article


Comments (1)

I think the point about JSON not being a markup language is quite well taken.

April 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          

Google Reader

Archives

Technorati

Technorati search

» Blogs that link here

Weather