Jsonwidget-javascript

jsonwidget-javascript is a Javascript library that can be used to dynamically build client-side forms to edit arbitrarily complicated JSON structures. As of 2010-04-13, this is incorporated into jsonwidget-python.

Demos
Note: these demos don't work well in IE, but seem fine in Firefox, Chrome and presumably Safari: (as of this writing on 2010-04-13):


 * Address book - Simple address book entry form. See also the view with schema editing enabled.
 * Election Configuration Editor - this was the original application I wrote this for (to be integrated into Electowidget).  It allows for flexible editing of a rather complex configuration file.  See also the view with schema editing enabled.
 * Freeform JSON editor - any valid JSON file (sans comments) can be modified
 * Create schema by example - a freeform JSON editor with the ability to generate a schema from the source

Other demos are available via selection box at the bottom of the examples above.

Acknowledgements
This assembles a lot of code and ideas from other sources.


 * json.js - a modified, outdated version of Douglas Crockford's library, which allows for nicely formated JSON.  My apologies to Mr. Crockford for the butchered, forked version.
 * Schema language inspired by and mostly compatible with the JSON version of Kwalify by Makoto Kuwata.
 * JSON.php by Michal Migurski and others.  This is provided as originally distributed.
 * I'm certain there are others.