NAME
Kernel::System::DataValidation::Validator::JSON – Validator that verifies that a value is a valid JSON string.
PUBLIC INTERFACE
Provides a Check
method, that will be called by the Kernel::System::DataValidation backend.
Check()
Checks if the given value is a valid JSON string.
my $True = $Validator->Check(
Value => '{"Key": "Value"}',
);
my $False = $Validator->Check(
Value => '{Key: "Value"}',
);