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

JsonSerializerOptionsAttribute

public bool IgnoreReadOnlyFields { get; set; }

public bool IgnoreReadOnlyProperties { get; set; }

public bool IgnoreRuntimeCustomConverters { get; set; }

public bool IncludeFields { get; set; }

public JsonKnownNamingPolicy NamingPolicy { get; set; }

public bool WriteIndented { get; set; }