JsonSerializerOptions.NumberHandling Property

Definition

Gets or sets an object that specifies how number types should be handled when serializing or deserializing.

public System.Text.Json.Serialization.JsonNumberHandling NumberHandling { get; set; }

Property Value

Exceptions

This property is set after serialization or deserialization has occurred.

Applies to

Product Versions
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)