public function decode($file)
    {
        $contents = $this->getFileContents($file);

        $result = array();
        if ($contents != "") {
            $result = json_decode($contents, true);
        }

        return $result;
    }
public function decode($file)
    {
        $contents = $this->getFileContents($file);

        $result = array();
        if ($contents != "") {
            $result = json_decode($contents, true);
        }

        return $result;
    }
public function decode ( $ file ) { $ contents = $ this -> getFileContents ( $ file ) ; $ result = array ( ) ; if ( $ contents != "" ) { $ result = json_decode ( $ contents , true ) ; } return $ result ; }
Decodes the json contents readed from the given file, into an array

@param  string $file
@return array
Decodes the json contents readed from the given file into an array