Skip to content

Commit 47937fd

Browse files
Update JsonSerializer.xml (#9864)
issue finds in documentation related to functions SerializeToElement() which return a JsonElement, not a JsonDocument.
1 parent 35cb3f3 commit 47937fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xml/System.Text.Json/JsonSerializer.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4151,8 +4151,8 @@ For more information, see [How to serialize and deserialize JSON](/dotnet/standa
41514151
<param name="value">The value to convert.</param>
41524152
<param name="inputType">The type of the <paramref name="value" /> to convert.</param>
41534153
<param name="options">Options to control the conversion behavior.</param>
4154-
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonDocument" />.</summary>
4155-
<returns>A <see cref="T:System.Text.Json.JsonDocument" /> representation of the value.</returns>
4154+
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonElement" />.</summary>
4155+
<returns>A <see cref="T:System.Text.Json.JsonElement" /> representation of the value.</returns>
41564156
<remarks>To be added.</remarks>
41574157
<exception cref="T:System.ArgumentException">
41584158
<paramref name="inputType" /> is not compatible with <paramref name="value" />.</exception>
@@ -4194,8 +4194,8 @@ For more information, see [How to serialize and deserialize JSON](/dotnet/standa
41944194
<param name="value">The value to convert.</param>
41954195
<param name="inputType">The type of the <paramref name="value" /> to convert.</param>
41964196
<param name="context">A metadata provider for serializable types.</param>
4197-
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonDocument" />.</summary>
4198-
<returns>A <see cref="T:System.Text.Json.JsonDocument" /> representation of the value.</returns>
4197+
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonElement" />.</summary>
4198+
<returns>A <see cref="T:System.Text.Json.JsonElement" /> representation of the value.</returns>
41994199
<remarks>To be added.</remarks>
42004200
<exception cref="T:System.NotSupportedException">There is no compatible <see cref="T:System.Text.Json.Serialization.JsonConverter" /> for <paramref name="inputType" /> or its serializable members.</exception>
42014201
<exception cref="T:System.InvalidOperationException">The <see cref="M:System.Text.Json.Serialization.JsonSerializerContext.GetTypeInfo(System.Type)" /> method of the provided <paramref name="context" /> returns <see langword="null" /> for the type to convert.</exception>
@@ -4250,8 +4250,8 @@ For more information, see [How to serialize and deserialize JSON](/dotnet/standa
42504250
<typeparam name="TValue">The type of the value to serialize.</typeparam>
42514251
<param name="value">The value to convert.</param>
42524252
<param name="options">Options to control the conversion behavior.</param>
4253-
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonDocument" />.</summary>
4254-
<returns>A <see cref="T:System.Text.Json.JsonDocument" /> representation of the JSON value.</returns>
4253+
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonElement" />.</summary>
4254+
<returns>A <see cref="T:System.Text.Json.JsonElement" /> representation of the JSON value.</returns>
42554255
<remarks>To be added.</remarks>
42564256
<exception cref="T:System.NotSupportedException">There is no compatible <see cref="T:System.Text.Json.Serialization.JsonConverter" /> for <typeparamref name="TValue" /> or its serializable members.</exception>
42574257
</Docs>
@@ -4290,8 +4290,8 @@ For more information, see [How to serialize and deserialize JSON](/dotnet/standa
42904290
<typeparam name="TValue">The type of the value to serialize.</typeparam>
42914291
<param name="value">The value to convert.</param>
42924292
<param name="jsonTypeInfo">Metadata about the type to convert.</param>
4293-
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonDocument" />.</summary>
4294-
<returns>A <see cref="T:System.Text.Json.JsonDocument" /> representation of the value.</returns>
4293+
<summary>Converts the provided value into a <see cref="T:System.Text.Json.JsonElement" />.</summary>
4294+
<returns>A <see cref="T:System.Text.Json.JsonElement" /> representation of the value.</returns>
42954295
<remarks>To be added.</remarks>
42964296
<exception cref="T:System.NotSupportedException">There is no compatible <see cref="T:System.Text.Json.Serialization.JsonConverter" /> for <typeparamref name="TValue" /> or its serializable members.</exception>
42974297
<exception cref="T:System.ArgumentNullException">

0 commit comments

Comments
 (0)