Skip to content

JsonType

Requires the property’s value to be a syntactically valid JSON string.

Backed by Quiote\Validator\JsonValidator.

final class JsonType

Since1.0.0
SourceRequest/Attribute/Constraint/JsonType.php
PropertyTypeDescription
$message?``stringreadonly.

public function __construct(?string $message = null): mixed

ParameterTypeDescription
$message?``string

Returns mixed