diff --git a/function.php b/function.php index ae547888..1ec1afa3 100644 --- a/function.php +++ b/function.php @@ -28,6 +28,21 @@ interface Arrayable } +if (!function_exists('json_validator')) { + + + /** + * @param string $data + * @return bool + */ + function json_validator(string $data): bool + { + return is_null(json_decode($data)); + } + +} + + if (!function_exists('application')) { /**