src/Serializer/JsonDeserializer.php
public function deserialize(string $string): RuleGroupInterface
    {
        $decodedRuleGroup = json_decode($string, true);
        if (is_null($decodedRuleGroup) || !is_array($decodedRuleGroup)) {
            throw new JsonDeserializerInvalidJsonException();
        }

        return $this->deserializeRuleGroup($decodedRuleGroup);
    }
public function deserialize(string $string): RuleGroupInterface
    {
        $decodedRuleGroup = json_decode($string, true);
        if (is_null($decodedRuleGroup) || !is_array($decodedRuleGroup)) {
            throw new JsonDeserializerInvalidJsonException();
        }

        return $this->deserializeRuleGroup($decodedRuleGroup);
    }
{@inheritdoc}