Hey Zed et al. I'm playing around with designing/building a slightly better front-end for the JSON archives. In order to test or run the browser locally while fetching the data off of librelist (using librelist's JSON basically as a simple remote API) it would be much easier if the JSON supported a JSONP style callback parameter. See: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ The real gist is if ?callback=callback was passed to any of the JSON archive call, you'd just have to wrap the data in the callback function. Is this possible? If not, I guess I could rebuild a JSON API off a rsynced dir, but I figure opening this up would encourage people to play/make more use of this data. Thanks, --AQ Aaron Quint http://www.quirkey.com
On Wed, Jan 06, 2010 at 11:16:10AM -0500, Aaron Quint wrote: > Hey Zed et al. > > I'm playing around with designing/building a slightly better front-end > for the JSON archives. In order to test or run the browser locally > while fetching the data off of librelist (using librelist's JSON > basically as a simple remote API) it would be much easier if the JSON > supported a JSONP style callback parameter. Nah, I can't add a JSONP because that data is just plain old files pulled off an nginx server that I added a module to for doing directory listings in json format. I'll look at making it so you can rsync down the json files and publish the code to that nginx hack. -- Zed A. Shaw http://zedshaw.com/
On Wed, Jan 6, 2010 at 12:57 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote: > On Wed, Jan 06, 2010 at 11:16:10AM -0500, Aaron Quint wrote: >> Hey Zed et al. >> >> I'm playing around with designing/building a slightly better front-end >> for the JSON archives. In order to test or run the browser locally >> while fetching the data off of librelist (using librelist's JSON >> basically as a simple remote API) it would be much easier if the JSON >> supported a JSONP style callback parameter. > > Nah, I can't add a JSONP because that data is just plain old files > pulled off an nginx server that I added a module to for doing directory > listings in json format. > > I'll look at making it so you can rsync down the json files and publish > the code to that nginx hack. > > -- > Zed A. Shaw > http://zedshaw.com/ > That works - the main thing is just getting the JSON instead of just the directories. --AQ