Skip to content

Commit f89551d

Browse files
authored
Fix wrong line number for code highlight (#27213)
Lines were shifted by commit 873111b
1 parent 2ac9f55 commit f89551d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/standard/serialization/system-text-json-handle-overflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If you just want to be flexible about what JSON to accept for a particular prope
9393

9494
The following example shows a round trip from JSON and back to JSON for a class that includes properties of type `JsonElement` and `JsonNode`.
9595

96-
:::code language="csharp" source="snippets/system-text-json-how-to-6-0/csharp/RoundtripJsonElementAndNode.cs" highlight="12-13":::
96+
:::code language="csharp" source="snippets/system-text-json-how-to-6-0/csharp/RoundtripJsonElementAndNode.cs" highlight="11-12":::
9797

9898
:::zone-end
9999

docs/standard/serialization/system-text-json-preserve-references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ System.Text.Json in .NET Core 3.1 only supports serialization by value and throw
8383

8484
Instead of handling circular references, you can ignore them. To ignore circular references, set <xref:System.Text.Json.JsonSerializerOptions.ReferenceHandler%2A> to <xref:System.Text.Json.Serialization.ReferenceHandler.IgnoreCycles%2A>. The serializer sets circular reference properties to `null`, as shown in the following example:
8585

86-
:::code language="csharp" source="snippets/system-text-json-how-to-6-0/csharp/SerializeIgnoreCycles.cs" highlight="34,61":::
86+
:::code language="csharp" source="snippets/system-text-json-how-to-6-0/csharp/SerializeIgnoreCycles.cs" highlight="32,59":::
8787

8888
In the preceding example, `Manager` under `Adrian King` is serialized as `null` to avoid the circular reference. This behavior has the following advantages over <xref:System.Text.Json.Serialization.ReferenceHandler.Preserve%2A?displayProperty=nameWithType>:
8989

0 commit comments

Comments
 (0)