Skip to content

Commit

Permalink
updated fix for controlling depth.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentschmaltz committed Feb 15, 2023
1 parent 6aa3efd commit dc66295
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@ private object CreateISerializable(JsonReader reader, JsonISerializableContract
JsonConverter? itemConverter = GetConverter(itemContract, null, contract, member);

JsonReader tokenReader = token.CreateReader();
tokenReader.MaxDepth = Serializer.MaxDepth;
tokenReader.ReadAndAssert(); // Move to first token

object? result;
Expand Down

0 comments on commit dc66295

Please sign in to comment.