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

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

        return $result;
    }