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

JsonNumberHandlingAttribute

When placed on a type, property, or field, indicates what JsonNumberHandling settings should be used when serializing or deserializing numbers.
public JsonNumberHandling Handling { get; }

Indicates what settings should be used when serializing or deserializing numbers.

Initializes a new instance of JsonNumberHandlingAttribute.