@ -92,7 +92,7 @@ There will always be more work to do here. ;-)
If you add ?format=json to a request for an OPML file, you'll get a JSON representation of the outline. This is useful for single-page JavaScript apps that want to use the outlineBrowser toolkit to diplay the contents. An example of this is <ahref="http://davewiner.com/">davewiner.com</a>.
I also figured out how to write a JS page that's served by PagePark that returns the JSON representation of any OPML file. Here's a <ahref="https://gist.github.com/scripting/7b95bfea614245a47f38">gist</a> containing the code. And a <ahref="http://pagepark.io/getjsonopml.js?url=http://hosting.opml.org/dave/states.opml">call</a> to that page. It's extra-nice that this feature could be added without modifying PagePark. It's starting to become a real platform! :-)
To do this I needed to write a JS page that's served by PagePark that returns the JSON representation of a specific OPML file. Here's a <ahref="https://gist.github.com/scripting/02dfd9dd5d9d3053c510">gist</a> containing the code. And a <ahref="http://pagepark.io/getdavewineropml.js">call</a> to that page. It's extra-nice that this feature could be added without modifying PagePark. It's starting to become a real platform! :-)
In both cases, the CORS header allows access from anywhere.