<?php

declare(strict_types=1);

namespace NoahVet\Reef\Validator\Payload;

class JsonValidator
{
    public function isValid(string $json): bool
    {
        \json_decode($json);

        return \JSON_ERROR_NONE === \json_last_error();
    }
}
