Google adds JSON interfaces

Great news for all the Google-Addicts: the GData group has just added JSON interfaces for their services! From the official post:
For those of you who have been trying to build client-side GData mashups but have been thwarted by the same-origin policy, we have some good news for you: you can now get public Base, Blogger, and Calendar feeds as JSON! This means that you can start displaying GData in your web page with a little JavaScript.
In other words it is now possible to define a callback function and simply add a script-tag to your page, and the browser will go and fetch the data, that will then be handled by that function. No need for the server to proxy the data through, eliminating the need of complex caching mechanisms, just fetch the data from the source :)
 function handleJson(json) {   alert("The title of the feed is: " + json.feed.title.$t); }
It’s as simple as it gets. Being the browser the one who fetches the data greatly improves speed and reduces bandwidth for the originating server. Supported Services for now are: but I’m sure more will follow soon :D Just take a look at the official post for more information.
  • Share/Bookmark

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

3 Responses to “Google adds JSON interfaces”

  1. Fading Roses & Raging Viruses  on December 30th, 2006

    [...] Some weeks ago Google has added a nice new feature to their GData libraries: JSON data retrieval. This means that we now can retrieve data from some services of Google (Base, Blogger and Calendar for now) without having to proxy it through our servers (if you still don’t know, after thousands of posts about Cross-Domain issues, why you need to do this, just look here). [...]

    Reply

  2. GCalendar: Accessing Google Calendar from JavaScript  on January 9th, 2007

    [...] Christian Decker wanted to access Google Calendar’s new JSON services in a simple way, so he has created, and shared GCalendar, an API for doing just that. PLAIN TEXT JAVASCRIPT: [...]

    Reply


Leave a Reply