Click here to show or hide the menubar.

Home >  Archive >  2010 >  October >  23

Previous / Next

Amazingly, the OPML Editor now does JSON
By Dave Winer on Saturday, October 23, 2010 at 1:36 PM.

I still think JSON was a bad idea, that we should have worked harder, all of us, to make a single simple text-based data sharing language. And, if you ever doubted my sincerity, you can believe it now because I now have done the work to make my programming environment able to both send and receive JSON. permalink

A couple of weeks ago, as part of the FeedHose project, I made it so that it could transmit JSON. permalink

And over the last few days I've written a JSON parser. permalink

For those people who are familiar with Frontier (the OPML Editor is just a distribution of Frontier, which was GPL'd in 2005), the JSON support is designed to work with the internals that have already been built around XML. There are two main routines for that, xml.compile and xml.decompile. There are two new routines, xml.jsonToTable and xml.tableToJson, that work exactly as the equivalent XML routines. They produce the same structures, so that all the techniques we have for walking structures work whether the data came to us through JSON or XML. permalink

I've put up a web app for testing the JSON support in the OPML Editor. If you want to help, find bits of valid JSON that it doesn't correctly deal with. And find invalid JSON that it accepts.  permalink

http://json.scripting.com/  permalink

RSS feed for Scripting News
This site contributes to the scripting.com community river.


© Copyright 1997-2012 Dave Winer. Last update: Saturday, October 23, 2010 at 1:39 PM Eastern. Last build: 8/26/2012; 5:59:17 PM. "It's even worse than it appears."

RSS feed for Scripting News

Previous / Next