LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 May 5 2010

Joe
Member

JSON vs XML

The title says all. I want to know the differences, advantages and drawbacks of each, ...

Offline

#2 May 5 2010

xterm
Moderator

Re: JSON vs XML

JSON:

Lighter, 1 to 1 map with JS Objects, preferred choice for RPC, subset of YAML which is awesome.

XML:

Heavier, Verbose, Preferred choice for webservices, configuration files (.NET/Java mostly), Declarative UI (mxml/xaml/GWT...). Everyone and his mom created a parser and a serializer for it.

And more...

Last edited by xterm (May 5 2010)

Offline

#3 May 5 2010

Kassem
Member

Re: JSON vs XML

I really like XML... I use it very often.

Offline

#4 May 5 2010

rolf
Member

Re: JSON vs XML

I try to avoid XML, I dont like the DOM functions and the unnecessary markup. Although I like the elegance of XML.

Offline

#5 May 5 2010

xterm
Moderator

Re: JSON vs XML

rolf is the DV kind of guy!

Offline

#6 May 6 2010

arithma
Member

Re: JSON vs XML

Think of XML as your safety net. When everything else that is concise fails, you fall back to it.

Offline

#7 May 6 2010

Kassem
Member

Re: JSON vs XML

Also think of XML as your way of communication between languages/platforms that cannot communicate on their own. Almost every language has a mechanism of reading/writing XML - that's a lot of power at your hands.

Offline

Board footer