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
+19-22Lines changed: 19 additions & 22 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">
@@ -79,7 +71,17 @@ This option implies that property names are treated as case-sensitive and that "
79
71
</ReturnValue>
80
72
<MemberValue>2</MemberValue>
81
73
<Docs>
82
-
<summary>Specifies that stricter policies should be applied when deserializing from JSON.</summary>
74
+
<summary>
75
+
<para>Option values appropriate for strict JSON parsing.</para>
<item>Nullable reference type annotations are respected.</item>
81
+
<item>Required constructor parameters are respected.</item>
82
+
</list>
83
+
</summary>
84
+
<remarks>This option configures stricter deserialization behavior that rejects unmapped or duplicate properties, and enforces both nullable annotations and required constructor parameters.</remarks>
83
85
</Docs>
84
86
</Member>
85
87
<MemberMemberName="Web">
@@ -108,19 +110,14 @@ This option implies that property names are treated as case-sensitive and that "
108
110
<summary>
109
111
<para>Option values appropriate to Web-based scenarios.</para>
110
112
<para>This member implies that:</para>
111
-
<para>- Property names are treated as case-insensitive.</para>
112
-
<para>- "camelCase" name formatting should be employed.</para>
113
-
<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>
114
119
</summary>
115
-
<remarks>
116
-
<formattype="text/markdown"><![CDATA[
117
-
118
-
## Remarks
119
-
120
-
This option implies that property names are treated as case-insensitive and that "camelCase" name formatting should be employed.
121
-
122
-
]]></format>
123
-
</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