Skip to content

Commit 2fb1c60

Browse files
committed
Copy MaxDepth when creating internal JObjectReader
1 parent 185ad01 commit 2fb1c60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

JsonSubTypes/JsonSubtypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ private static JsonReader CreateAnotherReader(JToken jToken, JsonReader reader)
233233
jObjectReader.FloatParseHandling = reader.FloatParseHandling;
234234
jObjectReader.DateFormatString = reader.DateFormatString;
235235
jObjectReader.DateParseHandling = reader.DateParseHandling;
236+
jObjectReader.MaxDepth = reader.MaxDepth;
236237
return jObjectReader;
237238
}
238239

0 commit comments

Comments
 (0)