You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonSerializerDefaults.xml
+15-34Lines changed: 15 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -50,15 +50,7 @@
50
50
<para>General-purpose option values. These are the same settings that are applied if a <seecref="T:System.Text.Json.JsonSerializerDefaults" /> member isn't specified.</para>
51
51
<para>For information about the default property values that are applied, see <seehref="https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions#properties">JsonSerializerOptions properties</see>.</para>
52
52
</summary>
53
-
<remarks>
54
-
<formattype="text/markdown"><![CDATA[
55
-
56
-
## Remarks
57
-
58
-
This option implies that property names are treated as case-sensitive and that "PascalCase" name formatting should be employed.
59
-
60
-
]]></format>
61
-
</remarks>
53
+
<remarks>This option implies that property names are treated as case-sensitive and that "PascalCase" name formatting should be employed.</remarks>
62
54
</Docs>
63
55
</Member>
64
56
<MemberMemberName="Strict">
@@ -82,20 +74,14 @@ This option implies that property names are treated as case-sensitive and that "
82
74
<summary>
83
75
<para>Option values appropriate for strict JSON parsing.</para>
84
76
<para>This member implies that:</para>
85
-
<para>- Unmapped JSON properties are disallowed.</para>
<item>Nullable reference type annotations are respected.</item>
81
+
<item>Required constructor parameters are respected.</item>
82
+
</list>
89
83
</summary>
90
-
<remarks>
91
-
<formattype="text/markdown"><![CDATA[
92
-
93
-
## Remarks
94
-
95
-
This option configures stricter deserialization behavior that rejects unmapped properties, duplicate properties, and enforces both nullable annotations and required constructor parameters.
96
-
97
-
]]></format>
98
-
</remarks>
84
+
<remarks>This option configures stricter deserialization behavior that rejects unmapped or duplicate properties, and enforces both nullable annotations and required constructor parameters.</remarks>
99
85
</Docs>
100
86
</Member>
101
87
<MemberMemberName="Web">
@@ -124,19 +110,14 @@ This option configures stricter deserialization behavior that rejects unmapped p
124
110
<summary>
125
111
<para>Option values appropriate to Web-based scenarios.</para>
126
112
<para>This member implies that:</para>
127
-
<para>- Property names are treated as case-insensitive.</para>
128
-
<para>- "camelCase" name formatting should be employed.</para>
129
-
<para>- Quoted numbers (JSON strings for number properties) are allowed.</para>
113
+
<listtype="bullet">
114
+
<item>Integers must be encoded as small as possible.</item>
115
+
<item>Property names are treated as case-insensitive.</item>
116
+
<item>"camelCase" name formatting should be employed.</item>
117
+
<item>Quoted numbers (JSON strings for number properties) are allowed.</item>
118
+
</list>
130
119
</summary>
131
-
<remarks>
132
-
<formattype="text/markdown"><![CDATA[
133
-
134
-
## Remarks
135
-
136
-
This option implies that property names are treated as case-insensitive and that "camelCase" name formatting should be employed.
137
-
138
-
]]></format>
139
-
</remarks>
120
+
<remarks>This option implies that property names are treated as case-insensitive and that "camelCase" name formatting should be employed.</remarks>
0 commit comments