JSONwidget

An automatic form generator/editor for JSON in Javascript

News:

About

JSONwidget is a Javascript library implementing a basic HTML form interface for editing arbitrary JSON files.  Application designers using this library have the option of providing a schema, limiting the input to a subset of valid JSON compatible with whatever application is actually consuming the JSON, or using a provided permissive schema that allows any valid JSON.  The form is dynamically generated using nothing more than a schema and a JSON file as input.

The library is licensed under a BSD-style license, making the licensing very flexible for many different applications.

Demos

Note: these demos only work well in Firefox (as of this writing on 2005-12-01): 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.  

Download

A tarball with everything used to create this demo is below:

Copyright (c) 2005 Rob Lanphier