Skip to content

Commit 21c1f6d

Browse files
authored
Link to System.Text.Json overview (#3306)
1 parent ad65f13 commit 21c1f6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xml/System.Runtime.Serialization.Json/DataContractJsonSerializer.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
<remarks>
4141
<format type="text/markdown"><![CDATA[
4242
43-
## Remarks
44-
Use the <xref:System.Runtime.Serialization.Json.DataContractJsonSerializer> class to serialize instances of a type into a JSON document and to deserialize a JSON document into an instance of a type. For example, you can create a type named `Person` with properties that contain essential data, such as a name and address. You can then create and manipulate an instance of the `Person` class and write all of its property values in a JSON document for later retrieval. This JSON document can later be deserialized into the `Person` class or another class with an equivalent data contract.
43+
## Remarks
44+
For most scenarios that involve serializing to JSON and deserializing from JSON, we recommend the [tools in the System.Text.Json namespace](/dotnet/standard/serialization/system-text-json-overview).
45+
46+
If your scenario requires the <xref:System.Runtime.Serialization.Json.DataContractJsonSerializer> class, you can use it to serialize instances of a type into a JSON document and to deserialize a JSON document into an instance of a type. For example, you can create a type named `Person` with properties that contain essential data, such as a name and address. You can then create and manipulate an instance of the `Person` class and write all of its property values in a JSON document for later retrieval. This JSON document can later be deserialized into the `Person` class or another class with an equivalent data contract.
4547
4648
If an error occurs during the serialization of an outgoing reply on the server or the reply operation throws an exception for some other reason, it may not get returned to the client as a fault.
4749

0 commit comments

Comments
 (0)