From 3fc1b16f33d729c446afbdf3bd1d42c73cc83a88 Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 15 Apr 2024 15:39:31 +0800 Subject: [PATCH] eee --- function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.php b/function.php index 15d13288..b0b41fd0 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_array(json_decode($data, true)); } }