protected function loadFile($path)
    {
        $composerJson = $this->fileData($path);

        return (null === $composerJson) ? null : (array) \json_decode($composerJson, true);
    }
protected function loadFile($path)
    {
        $composerJson = $this->fileData($path);

        return (null === $composerJson) ? null : (array) \json_decode($composerJson, true);
    }
protected function loadFile ( $ path ) { $ composerJson = $ this -> fileData ( $ path ) ; return ( null === $ composerJson ) ? null : ( array ) \ json_decode ( $ composerJson , true ) ; }
Read the .json file and return it as array.

@param string $path A path obtained via a prior call to JsonAuthorExtractorTrait::getFilePaths().

@return array
Read the . json file and return it as array .