code/BootstrapTagField.php
protected function getValuesJSON() {
		$value = $this->value;
		if($value instanceof SS_List) {
			$values = $value->column($this->idField);
		}
		else if(is_array($value)) {
			$values = array_keys($value);
		}
		else if(is_string($value)) {
			$values = explode(',', $value);
			$values = str_replace('{comma}', ',', $values);
		}

		return $this->formatJSON($this->source->filter(array(
			$this->idField => $values
		)));
	}
protected function getValuesJSON() {
		$value = $this->value;
		if($value instanceof SS_List) {
			$values = $value->column($this->idField);
		}
		else if(is_array($value)) {
			$values = array_keys($value);
		}
		else if(is_string($value)) {
			$values = explode(',', $value);
			$values = str_replace('{comma}', ',', $values);
		}

		return $this->formatJSON($this->source->filter(array(
			$this->idField => $values
		)));
	}
protected function getValuesJSON ( ) { $ value = $ this -> value ; if ( $ value instanceof SS_List ) { $ values = $ value -> column ( $ this -> idField ) ; } else if ( is_array ( $ value ) ) { $ values = array_keys ( $ value ) ; } else if ( is_string ( $ value ) ) { $ values = explode ( ',' , $ value ) ; $ values = str_replace ( '{comma}' , ',' , $ values ) ; } return $ this -> formatJSON ( $ this -> source -> filter ( array ( $ this -> idField => $ values ) ) ) ; }
Gets the current values assigned to the field, formatted as a JSON array

@return string 			JSON
Gets the current values assigned to the field formatted as a JSON array