Čítať v angličtine Upraviť

Zdieľať cez


JsonSerializerDefaults Enum

Definition

Specifies scenario-based default serialization options that can be used to construct a JsonSerializerOptions instance.

C#
public enum JsonSerializerDefaults
Inheritance
JsonSerializerDefaults

Fields

Name Value Description
General 0

General-purpose option values. These are the same settings that are applied if a JsonSerializerDefaults member isn't specified.

For information about the default property values that are applied, see JsonSerializerOptions properties.

Web 1

Option values appropriate to Web-based scenarios.

This member implies that:

- Property names are treated as case-insensitive.

- "camelCase" name formatting should be employed.

- Quoted numbers (JSON strings for number properties) are allowed.

Applies to

Produkt Verzie
.NET 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)