original_string: protected function formatJSON(SS_List $list) {
  		$ret = array ();
  		foreach($list as $item) {
  			$ret[] = array(
  				'id' => $item->{$this->idField},
  				'label' => $item->{$this->labelField}
  			);
  		}
  
  		return Convert::array2json($ret);
  	}
code: protected function formatJSON(SS_List $list) {
  		$ret = array ();
  		foreach($list as $item) {
  			$ret[] = array(
  				'id' => $item->{$this->idField},
  				'label' => $item->{$this->labelField}
  			);
  		}
  
  		return Convert::array2json($ret);
  	}
code_tokens: protected function formatJSON ( SS_List $ list ) { $ ret = array ( ) ; foreach ( $ list as $ item ) { $ ret [ ] = array ( 'id' => $ item -> { $ this -> idField } , 'label' => $ item -> { $ this -> labelField } ) ; } return Convert :: array2json ( $ ret ) ; }
docstring: Formats JSON so that it is usable by the JS component
  
  @param  SS_List $list The list to format
  @return string        JSON
docstring_tokens: Formats JSON so that it is usable by the JS component