Skip to content

Commit c8ee7ad

Browse files
tdykstramairaw
andauthored
Link to System.Text.Json conceptual docs (#3502)
* link to conceptual docs * typos * move links to remarks * Apply suggestions from code review Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Text.Json.Serialization/JsonConverterAttribute.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Text.Json.Serialization/JsonExtensionDataAttribute.xml Co-Authored-By: Maira Wenzel <[email protected]> * Apply suggestions from code review Co-Authored-By: Maira Wenzel <[email protected]> * Apply suggestions from code review Co-Authored-By: Maira Wenzel <[email protected]>
1 parent 283b260 commit c8ee7ad

22 files changed

+342
-36
lines changed

xml/System.Text.Json.Serialization/JsonConverter.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
<Interfaces />
1616
<Docs>
1717
<summary>Converts an object or value to or from JSON.</summary>
18-
<remarks>To be added.</remarks>
18+
<remarks>
19+
<format type="text/markdown"><![CDATA[
20+
21+
## Remarks
22+
23+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md).
24+
25+
]]></format>
26+
</remarks>
1927
</Docs>
2028
<Members>
2129
<Member MemberName="CanConvert">

xml/System.Text.Json.Serialization/JsonConverterAttribute.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ The specified converter type must derive from <xref:System.Text.Json.Serializati
3030
When placed on a property, the specified converter will always be used.
3131
3232
When placed on a type, the specified converter will be used unless a compatible converter is added to the <xref:System.Text.Json.JsonSerializerOptions.Converters?displayProperty=nameWithType> collection or there is another <xref:System.Text.Json.Serialization.JsonConverterAttribute> on a property of the same type.
33-
33+
34+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#register-a-custom-converter).
35+
3436
]]></format>
3537
</remarks>
3638
</Docs>

xml/System.Text.Json.Serialization/JsonConverterFactory.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
2323
This is useful for converters supporting generics, such as a converter for <xref:System.Collections.Generic.List`1>.
2424
25+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#register-a-custom-converter).
26+
2527
]]></format>
2628
</remarks>
2729
</Docs>
@@ -67,7 +69,15 @@ This is useful for converters supporting generics, such as a converter for <xref
6769
<param name="options">The serialization options to use.</param>
6870
<summary>Creates a converter for a specified type.</summary>
6971
<returns>A converter for which <typeparamref name="T" /> is compatible with <paramref name="typeToConvert" />.</returns>
70-
<remarks>To be added.</remarks>
72+
<remarks>
73+
<format type="text/markdown"><![CDATA[
74+
75+
## Remarks
76+
77+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#sample-factory-pattern-converter).
78+
79+
]]></format>
80+
</remarks>
7181
</Docs>
7282
</Member>
7383
</Members>

xml/System.Text.Json.Serialization/JsonConverter`1.xml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@
1919
<Docs>
2020
<typeparam name="T">The type of object or value handled by the converter.</typeparam>
2121
<summary>Converts an object or value to or from JSON.</summary>
22-
<remarks>To be added.</remarks>
22+
<remarks>
23+
<format type="text/markdown"><![CDATA[
24+
25+
## Remarks
26+
27+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md).
28+
29+
]]></format>
30+
</remarks>
2331
</Docs>
2432
<Members>
2533
<Member MemberName=".ctor">
@@ -69,6 +77,8 @@
6977
7078
The default implementation is to return `true` when `typeToConvert` equals `typeof(T)`.
7179
80+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#steps-to-follow-the-basic-pattern).
81+
7282
]]></format>
7383
</remarks>
7484
</Docs>
@@ -99,7 +109,15 @@ The default implementation is to return `true` when `typeToConvert` equals `type
99109
<param name="options">An object that specifies serialization options to use.</param>
100110
<summary>Reads and converts the JSON to type <typeparamref name="T" />.</summary>
101111
<returns>The converted value.</returns>
102-
<remarks>To be added.</remarks>
112+
<remarks>
113+
<format type="text/markdown"><![CDATA[
114+
115+
## Remarks
116+
117+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#steps-to-follow-the-basic-pattern).
118+
119+
]]></format>
120+
</remarks>
103121
</Docs>
104122
</Member>
105123
<Member MemberName="Write">
@@ -134,6 +152,8 @@ The default implementation is to return `true` when `typeToConvert` equals `type
134152
135153
A converter may throw any exception, but it should throw <xref:System.Text.Json.JsonException> when the JSON cannot be created.
136154
155+
For more information, see [How to write custom converters for JSON serialization](~/docs/standard/serialization/system-text-json-converters-how-to.md#steps-to-follow-the-basic-pattern).
156+
137157
]]></format>
138158
</remarks>
139159
</Docs>

xml/System.Text.Json.Serialization/JsonExtensionDataAttribute.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ During serialization, the name of the extension data property is not included in
3333
3434
If there is more than one property on a type with this extension data attribute, or if the property itself is not of the correct <see cref="T:System.Collections.Generic.IDictionary`2" /> type, an <xref:System.InvalidOperationException> is thrown during the first serialization or deserialization of that type.
3535
36+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#handle-overflow-json).
37+
3638
]]></format>
3739
</remarks>
3840
</Docs>

xml/System.Text.Json.Serialization/JsonIgnoreAttribute.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@
2020
</Attributes>
2121
<Docs>
2222
<summary>Prevents a property from being serialized or deserialized.</summary>
23-
<remarks>To be added.</remarks>
23+
<remarks>
24+
<format type="text/markdown"><![CDATA[
25+
26+
## Remarks
27+
28+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#exclude-individual-properties).
29+
30+
]]></format>
31+
</remarks>
2432
</Docs>
2533
<Members>
2634
<Member MemberName=".ctor">

xml/System.Text.Json.Serialization/JsonPropertyNameAttribute.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@
2020
</Attributes>
2121
<Docs>
2222
<summary>Specifies the property name that is present in the JSON when serializing and deserializing. This overrides any naming policy specified by <see cref="T:System.Text.Json.JsonNamingPolicy" />.</summary>
23-
<remarks>To be added.</remarks>
23+
<remarks>
24+
<format type="text/markdown"><![CDATA[
25+
26+
## Remarks
27+
28+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#customize-individual-property-names).
29+
30+
]]></format>
31+
</remarks>
2432
</Docs>
2533
<Members>
2634
<Member MemberName=".ctor">

xml/System.Text.Json.Serialization/JsonStringEnumConverter.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
2323
Reading is case insensitive. Writing can be customized by using a <xref:System.Text.Json.JsonNamingPolicy>.
2424
25+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#enums-as-strings).
26+
2527
]]></format>
2628
</remarks>
2729
</Docs>

xml/System.Text.Json/JsonCommentHandling.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
</Base>
1515
<Docs>
1616
<summary>Defines how the <see cref="T:System.Text.Json.Utf8JsonReader" /> struct handles comments.</summary>
17-
<remarks>To be added.</remarks>
17+
<remarks>
18+
<format type="text/markdown"><![CDATA[
19+
20+
## Remarks
21+
22+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#allow-comments-and-trailing-commas).
23+
24+
]]></format>
25+
</remarks>
1826
</Docs>
1927
<Members>
2028
<Member MemberName="Allow">

xml/System.Text.Json/JsonDocument.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<format><![CDATA[
2424
2525
This class utilizes resources from pooled memory to minimize the impact of the garbage collector (GC) in high-usage scenarios. Failure to properly dispose this object will result in the memory not being returned to the pool, which will increase GC impact across various parts of the framework.
26+
27+
For more information, see [How to serialize and deserialize JSON](~/docs/standard/serialization/system-text-json-how-to.md#utf8jsonreader-utf8jsonwriter-and-jsondocument).
28+
2629
2730
]]></format>
2831
</remarks>

0 commit comments

Comments
 (0)