Skip to Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
you’re on your way
387
xml versus json
So which is the better data format?
Joe: I know how to make Brussels sprouts, too. That
doesn’t mean I like them!
Frank: I just don’t see what you really gain by using
JSON. Maybe it’s a little easier for you to use, but it’s a
total pain for me to work with.
Joe: I don’t know. That JSON.php library looked pretty
easy to get running.
Frank: Sure, but now I’ve got to teach all my
programmers how to use JSON. They already know
XML, and that doesn’t require any special libraries.
Joe: Well, I still think it’s obvious. JSON rocks! I was just
reading an article that says it’s much faster than XML to
send over a network.
Frank: Yeah, I was just reading another article that said
the exact opposite! I think it totally depends on the data...
you can’t prove that JSON is always faster than XML in
every situation...
Joe: ...or that XML is faster than JSON!
Frank: Right. I guess we’re just not gonna agree on
this.?
Joe: Well, we have to pick one format or the other, right?
Well, it seems pretty obvious... JSON is new,
it’s JavaScript-friendly, and I don’t need to
do any weird DOM navigation to get my data.
Obvious to whom? I still think XML is the
clear winner. It’s a standard, and I don’t have
to download any libraries to use it in my PHP.
Besides, you know the DOM. What’s the big deal?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content