code: function () {
          var self = this, data = {};
  
          self.find('*').each(function (ctrl) {
            var name = ctrl.name(), value = ctrl.value();
  
            if (name && typeof value != "undefined") {
              data[name] = value;
            }
          });
  
          return data;
        }
docs: Serializes the form into a JSON object by getting all items
  that has a name and a value.
  
  @method toJSON
  @return {Object} JSON object with form data.