Skip to content

Bradley C. Buchanan

Menu
  • Software Engineer
  • Manager
  • Game Designer
  • Vita
Menu

Why JSON?

2008-07-292014-03-17

I was wondering as I researched last night why Google AJAX Search API was using JSON. I have never even heard of JSON (JavaScript Object Notation). I fully expected the AJAX API to be using XML… it is Asynchronous JavaScript And XML, after all. But, at least for the RESTfulinterface (another term I’ve never heard) Google has eschewed XML for the more compact JSON format.

Today I found a link on JSON.org to I can’t believe it’s not XML! by James Bennett back in 2006. I think it gives good reasons why both JSON and REST are good choices for Google, which are humorously summarized in this quote:

So the XML-the-protocol-stack people are more than a little bit scared and defensive right now because of the REST folks. And now here are these kids with their startup companies and their weblogs who are getting data exchange and even things that kind of look like APIs out of… JavaScript arrays? The XML guys are sitting up on the mountaintop like the Grinch, with his pile of stolen presents, wondering how Christmas still managed to happen: it came without specs! It came without hype! It came without angle brackets, envelopes or types!

So it may not be formal or robust, but JSON is cheap, it’s fast, and it works. And by now, it’s fairly widespread; having never heard of this protocol, I feel behind the times. I should bounce this off my advisor.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Work

  • ZSH git prompt workaround

    1 year ago
  • Back to School with Discord’s Whiteboard

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Good Enough Golfers update

    3 years ago
  • Leaving Code.org

    5 years ago

Play

  • Altered: Trial By Frost Prerelease

    4 months ago
  • Marginalia 2023-12-31

    1 year ago
  • IFComp 29 is open

    2 years ago
  • Discord Activities are on Mobile

    2 years ago
  • Esther’s: IFDB Awards

    2 years ago
RSS Feed

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Bradley C. Buchanan | Powered by Minimalist Blog WordPress Theme