System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute
Instructs the System.Text.Json source generator to assume the specified options will be used at run time via JsonSerializerOptions.
namespace System.Text.Json.Serialization
{
public sealed class JsonSourceGenerationOptionsAttribute : JsonAttribute
{
public bool AllowOutOfOrderMetadataProperties { get; set; }
public bool AllowTrailingCommas { get; set; }
public Type[] Converters { get; set; }
public int DefaultBufferSize { get; set; }
public JsonIgnoreCondition DefaultIgnoreCondition { get; set; }
public JsonKnownNamingPolicy DictionaryKeyPolicy { get; set; }
public bool IgnoreReadOnlyFields { get; set; }
public bool IgnoreReadOnlyProperties { get; set; }
public bool IncludeFields { get; set; }
public int MaxDepth { get; set; }
public JsonNumberHandling NumberHandling { get; set; }
public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; }
public bool PropertyNameCaseInsensitive { get; set; }
public JsonKnownNamingPolicy PropertyNamingPolicy { get; set; }
public JsonCommentHandling ReadCommentHandling { get; set; }
public JsonKnownReferenceHandler ReferenceHandler { get; set; }
public bool RespectNullableAnnotations { get; set; }
public bool RespectRequiredConstructorParameters { get; set; }
public JsonUnknownTypeHandling UnknownTypeHandling { get; set; }
public JsonUnmappedMemberHandling UnmappedMemberHandling { get; set; }
public bool WriteIndented { get; set; }
public char IndentCharacter { get; set; }
public int IndentSize { get; set; }
public JsonSourceGenerationMode GenerationMode { get; set; }
public bool UseStringEnumConverter { get; set; }
public string NewLine { get; set; }
public bool AllowDuplicateProperties { get; set; }
public JsonSourceGenerationOptionsAttribute();
public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults);
}
}