SerializeJSON

Type: jQuery Plugin

The serializeJSON plugin will serialize a form into a hash. There are other plugins out that that are very similar, but I had some specific needs to meet:

  1. Blank values to be returned as blank, not null or false.
  2. Ability to convert checkbox values to booleans.
  3. Run on any element type, not just forms.
  4. Allow a selector for acquiring a subset of inputs.

Due to the nature of what serializeJSON returns, is is not chainable.

form 1, fieldset 1
form 1, fieldset 2