* jQuery serializeObject - v0.2-wp - 1/20/2010
* http://benalman.com/projects/jquery-misc-plugins/
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
// Whereas .serializeArray() serializes a form into an array, .serializeObject()
// serializes a form into an (arguably more useful) object.
'$:nomunge'; // Used by YUI compressor.
$.fn.serializeObject = function(){
$.each( this.serializeArray(), function(i,o){
obj[n] = obj[n] === undefined ? v
: Array.isArray( obj[n] ) ? obj[n].concat( v )