protected function readJson($path)
    {
        $jsonData = @file_get_contents($path);

        if (false === $jsonData) {
            throw new ConfigurationReadException($path);
        }

        $data = json_decode($jsonData);
        $jsonError = json_last_error();
        if (JSON_ERROR_NONE !== $jsonError) {
            throw new InvalidJsonException($path, $jsonError);
        }

        return new ObjectAccess($data);
    }
protected function readJson($path)
    {
        $jsonData = @file_get_contents($path);

        if (false === $jsonData) {
            throw new ConfigurationReadException($path);
        }

        $data = json_decode($jsonData);
        $jsonError = json_last_error();
        if (JSON_ERROR_NONE !== $jsonError) {
            throw new InvalidJsonException($path, $jsonError);
        }

        return new ObjectAccess($data);
    }
protected function readJson ( $ path ) { $ jsonData = @ file_get_contents ( $ path ) ; if ( false === $ jsonData ) { throw new ConfigurationReadException ( $ path ) ; } $ data = json_decode ( $ jsonData ) ; $ jsonError = json_last_error ( ) ; if ( JSON_ERROR_NONE !== $ jsonError ) { throw new InvalidJsonException ( $ path , $ jsonError ) ; } return new ObjectAccess ( $ data ) ; }
Read JSON data from the supplied path.

@param string $path The path to read from.

@return ObjectAccess                    The parsed data.
@throws ConfigurationExceptionInterface If there is a problem reading the data.
Read JSON data from the supplied path .