Skip to content

Commit 3c184a9

Browse files
authored
remove unnecessary line (#44091)
1 parent 2028e25 commit 3c184a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/standard/serialization/system-text-json/snippets/use-dom-utf8jsonreader-utf8jsonwriter/csharp/JsonNodeAverageGradeExample.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public static void Main()
3838
double sum = 0;
3939
JsonNode document = JsonNode.Parse(jsonString)!;
4040

41-
JsonNode root = document.Root;
42-
JsonArray studentsArray = root["Students"]!.AsArray();
41+
JsonArray studentsArray = document["Students"]!.AsArray();
4342

4443
int count = studentsArray.Count;
4544
foreach (JsonNode? student in studentsArray)

0 commit comments

Comments
 (0)