You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LearnJsonEverything/wwwroot/data/lessons/path.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@
66
66
"api": null,
67
67
"schemaDocs": null,
68
68
"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}",
0 commit comments