Abbey Workshop
OSX
XML
All

Entry

JSON vs XML

06-08-2007 09:32:45 by MikeW in categories: General

Rececently I have been reading a lot of books on AJAX and Web 2.0. Many of the books and articles compare the JSON data format quite favorably to XML. "JSON can do anything XML can do. Its more efficient. It's cleaner. It's faster. blah blah blah."

So if you haven't seen JSON, let me show you two simple examples.

Date in XML

<date>
   <month>06</month>
   <monthDay>08</monthDay>
   <year>2007</year>
</date>
	

Date in JSON

{"date":{
    "month":"06",
    "monthDay":"08",
    "year":"2007"
	}
}

	

Granted I'm a little biased towards XML, but I just don't see buy the JSON hype. A couple of points I would like to make.

Being able to turn the data instantly into an object is cool. So JSON is definitely worth checking out. But it certainly is no "all powerful" solution to data exchange problems.

Google
  Web abbeyworkshop.com  

Copyright © Abbey Workshop 2006

Blog Home

Archives

Current Year: 2007
Months: 01 02 03 05 06 07 09

Blog Links

Friends
Elementary Penguin
Random Dribble
Scotty's Engineering Log
Vegetarian Conspiracy

IP Audio/Video
diggnation
nerdtv
twit.tv

Programming
Artima Ruby Buzz
PHP Developer

XML
Tim Bray
Planet XML
xml.com

Categories

General
XML