<PackageReference Include="System.Text.Json" Version="8.0.0-preview.7.23375.6" />

JsonSourceGenerationOptionsAttribute

Instructs the System.Text.Json source generator to assume the specified options will be used at run time via JsonSerializerOptions.
public bool AllowTrailingCommas { get; set; }

public Type[] Converters { get; set; }

public int DefaultBufferSize { get; set; }

Gets or sets the default ignore condition.

Gets or sets the source generation mode for types that don't explicitly set the mode with GenerationMode.

public bool IgnoreReadOnlyFields { get; set; }

Gets or sets a value that indicates whether to ignore read-only fields.

public bool IgnoreReadOnlyProperties { get; set; }

Gets or sets a value that indicates whether to ignore read-only properties.

public bool IncludeFields { get; set; }

Gets or sets a value that indicates whether to include fields for serialization and deserialization.

public int MaxDepth { get; set; }

public JsonNumberHandling NumberHandling { get; set; }

public bool PropertyNameCaseInsensitive { get; set; }

Gets or sets a built-in naming policy to convert JSON property names with.

public bool UseStringEnumConverter { get; set; }

public bool WriteIndented { get; set; }

Gets or sets a value that indicates whether JSON output is pretty-printed.

Initializes a new instance of JsonSourceGenerationOptionsAttribute.