Skip to content

Commit 02e489e

Browse files
Merge pull request #12256 from dotnet/main
Merge main into live
2 parents 60d7cab + 58ad61c commit 02e489e

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

xml/System.Text.Json/JsonSerializerDefaults.xml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,7 @@
5050
<para>General-purpose option values. These are the same settings that are applied if a <see cref="T:System.Text.Json.JsonSerializerDefaults" /> member isn't specified.</para>
5151
<para>For information about the default property values that are applied, see <see href="https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions#properties">JsonSerializerOptions properties</see>.</para>
5252
</summary>
53-
<remarks>
54-
<format type="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>
6254
</Docs>
6355
</Member>
6456
<Member MemberName="Strict">
@@ -79,7 +71,17 @@ This option implies that property names are treated as case-sensitive and that "
7971
</ReturnValue>
8072
<MemberValue>2</MemberValue>
8173
<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>
76+
<para>This member implies that:</para>
77+
<list type="bullet">
78+
<item>Unmapped JSON properties aren't allowed.</item>
79+
<item>Duplicate JSON properties aren't allowed.</item>
80+
<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>
8385
</Docs>
8486
</Member>
8587
<Member MemberName="Web">
@@ -108,19 +110,14 @@ This option implies that property names are treated as case-sensitive and that "
108110
<summary>
109111
<para>Option values appropriate to Web-based scenarios.</para>
110112
<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+
<list type="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>
114119
</summary>
115-
<remarks>
116-
<format type="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>
124121
</Docs>
125122
</Member>
126123
</Members>

0 commit comments

Comments
 (0)