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;
    }