
      /* @projectDescription jQuery Serialize Anything - Serialize anything (and not just forms!)
   2.
      * @author Bramus! (Bram Van Damme)
   3.
      * @version 1.0
   4.
      * @website: http://www.bram.us/
   5.
      * @license : BSD
   6.
      * @Revised by D. Keinnard (keinnard@mail.ru) for returning stringified JSON values
	  
	  */
       
      (function($) {
          $.fn.serializeAnyArray = function() {
             
              var toReturn    = [];
              var els         = $(this).find(':input').get();
              $.each(els, function() {
                  if (this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password/i.test(this.type))) {
                      var val = $(this).val();
                      toReturn.push( '{"name":"'+this.name + '","value":"' +  val +'"}'  );
					  //alert (toReturn);
                  }

              });   
              return '['+toReturn +']' ;//.join("&").replace(/%20/g, "+");
          }
      })(jQuery);


