diff --git a/src/JsonRpc/Serialization/SerializerBase.cs b/src/JsonRpc/Serialization/SerializerBase.cs index 868be57c6..b50131e13 100644 --- a/src/JsonRpc/Serialization/SerializerBase.cs +++ b/src/JsonRpc/Serialization/SerializerBase.cs @@ -19,7 +19,7 @@ protected virtual JsonSerializer CreateSerializer() protected virtual JsonSerializerSettings CreateSerializerSettings() { - var settings = JsonConvert.DefaultSettings != null ? JsonConvert.DefaultSettings() : new JsonSerializerSettings(); + var settings = JsonConvert.DefaultSettings != null ? JsonConvert.DefaultSettings() : new JsonSerializerSettings { MaxDepth = 128 }; AddOrReplaceConverters(settings.Converters); return _settings = settings; }