public static function isValid($value): bool
    {
        try {
            self::decode($value);

            return true;
        } catch (\Throwable $e) {
            return false;
        }
    }
public static function isValid($value): bool
    {
        try {
            self::decode($value);

            return true;
        } catch (\Throwable $e) {
            return false;
        }
    }
public static function isValid ( $ value ) : bool { try { self :: decode ( $ value ) ; return true ; } catch ( \ Throwable $ e ) { return false ; } }
Returns true if the given value is a valid JSON string.

@param mixed $value

@return bool
Returns true if the given value is a valid JSON string .