Saturday, April 02, 2011 at 9:08 PM.
radio2Suite.setupJsonReturn
on setupJsonReturn () {
<<Changes
<<1/8/11; 10:20:30 AM by DW
<<Created. This is what a web page needs to do in order to return JSON, not have it rendered as HTML.
<<http://stackoverflow.com/questions/477816/the-right-json-content-type
local (pta = html.getpagetableaddress ());
pta^.responseHeaders.["Content-Type"] = "application/json"}
<<bundle //test code
<<setupJsonReturn ()
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.