public function loadFile($filePath)
    {
        $retriever = new UriRetriever();

        try {
            $json = \json_encode($retriever->retrieve('file://' . $filePath));
        } catch (JsonDecodingException $exception) {
            throw new InvalidJsonException($exception->getCode());
        }

        return $json;
    }
public function loadFile($filePath)
    {
        $retriever = new UriRetriever();

        try {
            $json = \json_encode($retriever->retrieve('file://' . $filePath));
        } catch (JsonDecodingException $exception) {
            throw new InvalidJsonException($exception->getCode());
        }

        return $json;
    }
public function loadFile ( $ filePath ) { $ retriever = new UriRetriever ( ) ; try { $ json = \ json_encode ( $ retriever -> retrieve ( 'file://' . $ filePath ) ) ; } catch ( JsonDecodingException $ exception ) { throw new InvalidJsonException ( $ exception -> getCode ( ) ) ; } return $ json ; }
Load a json from a path and resolve references

@param string $filePath

@throws \Exception

@return string
Load a json from a path and resolve references