public function getJsonContents()
	{
		$default = [];

		$path = $this->getJsonPath();

		if ($this->files->exists($path)) {
			$contents = $this->files->get($path);

			return json_decode($contents, true);
		} else {
			throw new UnknownFileException("The theme must have a valid theme.json manifest file.");
		}
	}
public function getJsonContents()
	{
		$default = [];

		$path = $this->getJsonPath();

		if ($this->files->exists($path)) {
			$contents = $this->files->get($path);

			return json_decode($contents, true);
		} else {
			throw new UnknownFileException("The theme must have a valid theme.json manifest file.");
		}
	}
public function getJsonContents ( ) { $ default = [ ] ; $ path = $ this -> getJsonPath ( ) ; if ( $ this -> files -> exists ( $ path ) ) { $ contents = $ this -> files -> get ( $ path ) ; return json_decode ( $ contents , true ) ; } else { throw new UnknownFileException ( "The theme must have a valid theme.json manifest file." ) ; } }
Get theme JSON content as an array.

@return array|mixed
Get theme JSON content as an array .