eee
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ if (!function_exists('json_validator')) {
|
|||||||
*/
|
*/
|
||||||
function json_validator(string $data): bool
|
function json_validator(string $data): bool
|
||||||
{
|
{
|
||||||
return !is_null(json_decode($data));
|
return is_array(json_decode($data, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user