Ahh, got it -- thanks for the clarification. //Ed
On Mon, Jun 21, 2010 at 12:53 AM, Anand Chitipothu <[email protected]> wrote: > > On 21-Jun-10, at 7:03 AM, Ed Summers wrote: > >> On Fri, Jun 18, 2010 at 9:22 PM, Anand Chitipothu >> <[email protected]> wrote: >>> Yes, that is by intension. In the last two links, we are requesting >>> for json by specifying format=json. >> >> But aren't all 3 responses JSON? > > No, the first one is javascript. > > $ curl 'http://ol.anandology.com/api/books?bibkeys=foo' > var _OLBookInfo = {}; > $ curl 'http://ol.anandology.com/api/books?bibkeys=foo&callback=f' > f({}); > > Adding format=json makes it JSON. > > $ curl 'http://ol.anandology.com/api/books?bibkeys=foo&format=json' > {} > > Anand > _______________________________________________ > Ol-tech mailing list > [email protected] > http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech > To unsubscribe from this mailing list, send email to > [email protected] > _______________________________________________ Ol-tech mailing list [email protected] http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech To unsubscribe from this mailing list, send email to [email protected]
