Skip to content

Commit 13c2b7c

Browse files
committed
update template for path root lesson
1 parent 5302e19 commit 13c2b7c

File tree

1 file changed

+1
-1
lines changed
  • LearnJsonEverything/wwwroot/data/lessons

1 file changed

+1
-1
lines changed

LearnJsonEverything/wwwroot/data/lessons/path.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"api": null,
6767
"schemaDocs": null,
6868
"instructions": "Write a path that just returns the entire JSON data structure.",
69-
"contextCode": "ususing System.Text.Json;\r\nusing System.Text.Json.Nodes;\r\nusing Json.Path;\r\n\r\nnamespace LearnJsonEverything;\r\n\r\npublic class Lesson : ILessonRunner<PathResult>\r\n{\r\n public PathResult Run(JsonObject test)\r\n {\r\n var data = test[\"data\"];\r\n var pathText = \"/* USER CODE */\";\r\n\r\n var path = JsonPath.Parse(pathText);\r\n\r\n return path.Evaluate(data);\r\n }\r\n}",
69+
"contextCode": "using System.Text.Json;\r\nusing System.Text.Json.Nodes;\r\nusing Json.Path;\r\n\r\nnamespace LearnJsonEverything;\r\n\r\npublic class Lesson : ILessonRunner<PathResult>\r\n{\r\n public PathResult Run(JsonObject test)\r\n {\r\n var data = test[\"data\"];\r\n var pathText = \"/* USER CODE */\";\r\n\r\n var path = JsonPath.Parse(pathText);\r\n\r\n return path.Evaluate(data);\r\n }\r\n}",
7070
"tests": [
7171
{
7272
"data": {

0 commit comments

Comments
 (0)