<PackageReference Include="System.Text.Json" Version="10.0.8" />

System.Text.Json.JsonDocumentOptions

public struct 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; } } }