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

JsonSourceGenerationOptionsAttribute

Instructs the System.Text.Json source generator to assume the specified options will be used at run time via JsonSerializerOptions.

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.

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

public bool WriteIndented { get; set; }

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

Instructs the System.Text.Json source generator to assume the specified options will be used at run time via JsonSerializerOptions.