Freddie vs JSON

by matt 20. January 2007 23:06

JSON or xml? Plenty of smart people have had plenty to say on this, so I think it's only fair that I litter up the internet with my viewpoint.

I don't get it.

Xml, even with its flaws, is way better than JSON.

I just can't get past the security thing with JSON. I'd much rather trust an inert data file than executing a "neutured" script. It's not very "defence in depth", is it?

Xml has support for schema validation, querying, transformation, security, composing multiple data elements and more.

JSON has explicit whitespace.

(WS-* is an application of xml, so I'm not going to mention it, other than to note that there is no JSON equivalent.)

I think xml has two killer things going for it.

The first is namespaces. Sure, JSON could do this by collaboration and convention, but xml namespaces are much more rigorous.

The second? Rss.

Would rss have flourished and evolved as much as it has if it were implemented in JSON?

Tags:

Comments

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading



About the author

Something about the author

Calendar

<<September 2010>>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

RecentComments

Comment RSS

License

Creative Commons License
Except where otherwise noted, content on this site is by Matt Ellis and is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.

©2010 Matt Ellis