diff --git a/function.php b/function.php index 1ec1afa3..15d13288 100644 --- a/function.php +++ b/function.php @@ -37,7 +37,7 @@ if (!function_exists('json_validator')) { */ function json_validator(string $data): bool { - return is_null(json_decode($data)); + return !is_null(json_decode($data)); } }