protected function load( $file ) {
		if ( ! file_exists( $file ) ) {
			throw new JsonFileNotFoundException( 'The required ' . basename( $file ) . ' file is missing.' );
		}

		$contents = file_get_contents( $file );
		$json = json_decode( $contents, true );
		$json_error = json_last_error();

		if ( $json_error !== JSON_ERROR_NONE ) {
			throw new JsonFileInvalidException( 'The required ' . basename( $file ) . ' file is not valid JSON (error code ' . $json_error . ').' );
		}

		return $json;
	}
protected function load( $file ) {
		if ( ! file_exists( $file ) ) {
			throw new JsonFileNotFoundException( 'The required ' . basename( $file ) . ' file is missing.' );
		}

		$contents = file_get_contents( $file );
		$json = json_decode( $contents, true );
		$json_error = json_last_error();

		if ( $json_error !== JSON_ERROR_NONE ) {
			throw new JsonFileInvalidException( 'The required ' . basename( $file ) . ' file is not valid JSON (error code ' . $json_error . ').' );
		}

		return $json;
	}
protected function load ( $ file ) { if ( ! file_exists ( $ file ) ) { throw new JsonFileNotFoundException ( 'The required ' . basename ( $ file ) . ' file is missing.' ) ; } $ contents = file_get_contents ( $ file ) ; $ json = json_decode ( $ contents , true ) ; $ json_error = json_last_error ( ) ; if ( $ json_error !== JSON_ERROR_NONE ) { throw new JsonFileInvalidException ( 'The required ' . basename ( $ file ) . ' file is not valid JSON (error code ' . $ json_error . ').' ) ; } return $ json ; }
Load the json file.

@param string $file

@return array
Load the json file .