you’re on your way �
373
xml versus json
Today’s adrenaline-laced, psyched-up ghters:
XML and JSON
XML: (glares at JSON)
JSON: Your time has finally come, XML. Tonight,
the world is gonna see that you’ve lost a step,
especially when it comes to JavaScript and
asynchronous applications.
XML: I’ve heard that one before... but here I am, still
the reigning data format in the world.
JSON: You’re only at the top because people think
that there’s nothing else available. I know lots of
people that can’t stand you, XML... you’re big and
bloated, and a real pain to work with.
XML: I’m big because I can handle anything.
Snowboard sales, HTML, purchase orders... you
throw it at me, I’ll take care of it. No problem. You
think a little pipsqueak can handle all those different
types of data? I don’t think so.
JSON: Maybe not, but I’m fast... a lot faster than
you, most of the time.
XML: I’m plenty fast, especially if you use my
attributes. And, I’m versatile... I can do all sorts of
things, like represent a math equation or a book.
JSON: Yeah, well, most of my users aren’t too
interested in sending math equations across the
network. Besides, all those angle brackets? Ugh...
anyone that knows arrays can start working with me
without having to learn all that weird XML syntax.
XML: But can someone transform you into
something else? Like with XSLT? Or what about
web services... you gonna tell me you can ...