diff --git a/src/Network/Struct.php b/src/Network/Struct.php index 6142209..ec6ce36 100644 --- a/src/Network/Struct.php +++ b/src/Network/Struct.php @@ -111,7 +111,7 @@ public function addBigIntField(string $field): void { * @return bool */ public static function isValid(string $json): bool { - return simdjson_is_valid($json); + return simdjson_is_valid($json, static::JSON_DEPTH); } /**