System.Text.Json.JsonDocumentOptions
Provides the ability for the user to define custom behavior when parsing JSON to create a JsonDocument.
namespace System.Text.Json
{
public struct JsonDocumentOptions
{
public JsonCommentHandling CommentHandling { get; set; }
public int MaxDepth { get; set; }
public bool AllowTrailingCommas { get; set; }
public bool AllowDuplicateProperties { get; set; }
}
}