code: function(source) {
              if($.isArray(source) && source.length && source[0].value !== undefined) {
                  for(var i = 0; i<source.length; i++) {
                      if(source[i].value !== undefined) {
                          source[i].id = source[i].value;
                          delete source[i].value;
                      }
                  }
              }
              return source;            
          }
docs: /*
  Converts source from x-editable format: {value: 1, text: "1"} to
  select2 format: {id: 1, text: "1"}