<PackageReference Include="System.Text.Json" Version="11.0.0-rc.1.26425.128" />

System.Text.Json.JsonSerializerOptions

public sealed class JsonSerializerOptions
Provides options to be used with JsonSerializer.
namespace System.Text.Json { public sealed class JsonSerializerOptions { public IList<JsonConverter> Converters { get; } public IList<JsonTypeClassifierFactory> TypeClassifiers { get; } public static JsonSerializerOptions Default { get; } public static JsonSerializerOptions Web { get; } public static JsonSerializerOptions Strict { get; } public IJsonTypeInfoResolver TypeInfoResolver { get; set; } public IList<IJsonTypeInfoResolver> TypeInfoResolverChain { get; } public bool AllowOutOfOrderMetadataProperties { get; set; } public bool AllowTrailingCommas { get; set; } public int DefaultBufferSize { get; set; } public JavaScriptEncoder Encoder { get; set; } public JsonNamingPolicy DictionaryKeyPolicy { get; set; } public bool IgnoreNullValues { get; set; } public JsonIgnoreCondition DefaultIgnoreCondition { get; set; } public JsonNumberHandling NumberHandling { get; set; } public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; } public bool IgnoreReadOnlyProperties { get; set; } public bool IgnoreReadOnlyFields { get; set; } public bool IncludeFields { get; set; } public int MaxDepth { get; set; } public JsonNamingPolicy PropertyNamingPolicy { get; set; } public bool PropertyNameCaseInsensitive { get; set; } public JsonCommentHandling ReadCommentHandling { 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 ReferenceHandler ReferenceHandler { get; set; } public string NewLine { get; set; } public bool RespectNullableAnnotations { get; set; } public bool RespectRequiredConstructorParameters { get; set; } public bool AllowDuplicateProperties { get; set; } public bool InferClosedTypePolymorphism { get; set; } public bool IsReadOnly { get; } public JsonTypeInfo GetTypeInfo(Type type); public bool TryGetTypeInfo(Type type, out JsonTypeInfo typeInfo); public JsonTypeInfo<T> GetTypeInfo<[System.Runtime.CompilerServices.Nullable(2)] T>(); public bool TryGetTypeInfo<T>(out JsonTypeInfo<T> typeInfo); public JsonConverter GetConverter(Type typeToConvert); public JsonSerializerOptions(); public JsonSerializerOptions(JsonSerializerOptions options); public JsonSerializerOptions(JsonSerializerDefaults defaults); public void AddContext<TContext>() where TContext : JsonSerializerContext, new; public void MakeReadOnly(); public void MakeReadOnly(bool populateMissingResolver); } }