dForm-generate is a jQuery plugin for generating JSON from a HTML form element which is compatible with the jQuery.dForm plugin.
Refer to example.html and example2.html Though typical useage will be:
This generates a JSON string ready to use with a JSON parser of your choice. So for example, to read one form from your HTML and then display it using jQuery.dForm:
var form = JSON.parse($("#form").dFormGenerate());
Note: text nodes (text not within a set of tags) within a form are ignored. Support for these may be added in the future, but in the meantime wrap text in a label, span, p, or anything.