src/Loader/JsonLoader.php
public function load()
    {
        $content = json_decode(file_get_contents($this->entity), true);

        if (json_last_error() !== JSON_ERROR_NONE) {
            $message = function_exists('json_last_error_msg') ? json_last_error_msg() : 'Parse error';

            throw new \RuntimeException(
                sprintf("'%s' failed to load with the error '%s'", $this->entity, $message)
            );
        }

        $this->content = $content;
        return $this;
    }
public function load()
    {
        $content = json_decode(file_get_contents($this->entity), true);

        if (json_last_error() !== JSON_ERROR_NONE) {
            $message = function_exists('json_last_error_msg') ? json_last_error_msg() : 'Parse error';

            throw new \RuntimeException(
                sprintf("'%s' failed to load with the error '%s'", $this->entity, $message)
            );
        }

        $this->content = $content;
        return $this;
    }
{@inheritdoc}

@throws \RunntimeException If the json file fails to load