demo/app.js
function dictify(serializedFormArray) {
  var o = {};
  $.each(serializedFormArray, function() {
    if (o[this.name] !== undefined) {
      if (!o[this.name].push) {
        o[this.name] = [o[this.name]];
      }
      o[this.name].push(this.value || '');
    } else {
      o[this.name] = this.value || '';
    }
  });
  return o;
}
function dictify(serializedFormArray) {
  var o = {};
  $.each(serializedFormArray, function() {
    if (o[this.name] !== undefined) {
      if (!o[this.name].push) {
        o[this.name] = [o[this.name]];
      }
      o[this.name].push(this.value || '');
    } else {
      o[this.name] = this.value || '';
    }
  });
  return o;
}
function dictify ( serializedFormArray ) { var o = { } ; $ . each ( serializedFormArray , function ( ) { if ( o [ this . name ] !== undefined ) { if ( ! o [ this . name ] . push ) { o [ this . name ] = [ o [ this . name ] ] ; } o [ this . name ] . push ( this . value || '' ) ; } else { o [ this . name ] = this . value || '' ; } } ) ; return o ; }
convert form array to dict
convert form array to dict