milkypostman/melpa — pull request #212 by gvalkov (2012-07-20 21:01:43+00:00)
Title: Make package archive and recipes exportable as json

Adds two elisp functions to `package-build.el` that serialize the archive and recipes alists to json:`
package-build-alist-as-json
package-build-archive-alist-as-json`.

The serialization itself is done with [json.el](http://edward.oconnor.cx/elisp/json.el) (included in the pull request).

I'm working on a new index page (all static, no worries) and a json is much more convenient than parsing `archive-contents` with regexes (the way it's currently done in `index.erb`). If the resulting json files were made available on the index page might also be useful to non-emacs consumers of melpa.

This branch includes the makefiles from #210 and extends them with rules for the json files (re-export only when the package archive or the list of recipes changes).

I just though I'd split this from my index rewrite branch, since it's a self-contained feature. Cheers!