Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Neo.Json/JToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public int GetInt32()
/// <param name="value">The byte array that contains the JSON token.</param>
/// <param name="max_nest">The maximum nesting depth when parsing the JSON token.</param>
/// <returns>The parsed JSON token.</returns>
public static JToken? Parse(ReadOnlySpan<byte> value, int max_nest = 100)
public static JToken? Parse(ReadOnlySpan<byte> value, int max_nest = 64)
{
Utf8JsonReader reader = new(value, new JsonReaderOptions
{
Expand All @@ -153,7 +153,7 @@ public int GetInt32()
/// <param name="value">The <see cref="string"/> that contains the JSON token.</param>
/// <param name="max_nest">The maximum nesting depth when parsing the JSON token.</param>
/// <returns>The parsed JSON token.</returns>
public static JToken? Parse(string value, int max_nest = 100)
public static JToken? Parse(string value, int max_nest = 64)
{
return Parse(StrictUTF8.GetBytes(value), max_nest);
}
Expand Down