Skip to content

Commit

Permalink
Deploying to gh-pages from @ 44c932f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Jun 12, 2024
1 parent 01310c6 commit 1f65e4c
Show file tree
Hide file tree
Showing 14 changed files with 413 additions and 45 deletions.
7 changes: 5 additions & 2 deletions LearnJsonEverything.styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ pre[b-vt8qwrn6xe] {
padding: 5px;
}

#workspace[b-ehorqxe7rc], #output[b-ehorqxe7rc] {
height: calc(50% - 45px/2);
#workspace[b-ehorqxe7rc] {
height: calc(70% - 45px/2);
}
#output[b-ehorqxe7rc] {
height: calc(30% - 45px/2);
}

#controls[b-ehorqxe7rc] {
Expand Down
Binary file modified _framework/LearnJsonEverything.Template.dll
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.Template.dll.br
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.Template.dll.gz
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.Template.pdb.gz
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.dll
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.dll.br
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.dll.gz
Binary file not shown.
Binary file modified _framework/LearnJsonEverything.pdb.gz
Binary file not shown.
6 changes: 3 additions & 3 deletions _framework/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "LearnJsonEverything",
"resources": {
"hash": "sha256-dbs3otpF4W6wpdnG7yj0+yAqgl4jO6Uz/qgIjp5r9I8=",
"hash": "sha256-pJXY2o4qK5nNkU6EZSfgpt6+6bwQFBW20SPFM9txgzk=",
"jsModuleNative": {
"dotnet.native.8.0.6.suuomc2hr0.js": "sha256-YU6M9+jtDVnB8/wtrgIndOstzNh778Ls8g9XnbjorSk="
},
Expand All @@ -26,8 +26,8 @@
"JsonPointer.Net.dll": "sha256-DzV9BEIGNC1mcOpb+JYI2gGXuDG5qg157LjFTnJ6pAE=",
"JsonSchema.Net.dll": "sha256-fMEcBvXYh4ic/8yueXWxpfstkwPxuvnMxBURilBRSGs=",
"JsonSchema.Net.Generation.dll": "sha256-aDlPhUJpakh/shP07s4bku0qAYIWxEhynuIe8ihu3Bs=",
"LearnJsonEverything.dll": "sha256-4iC/rwdpV+jpxmOEnr0SPkXy5Nm6rTYl8IJ+O9TbNMU=",
"LearnJsonEverything.Template.dll": "sha256-IY7DTc8KXnqsKmZTjRZ+W0HlkVw5Q0pwA39TdI3OBTI=",
"LearnJsonEverything.dll": "sha256-H3moQ7kiHZSe1upLH6+kg0JrY/0lXs7X3BTclidRtWY=",
"LearnJsonEverything.Template.dll": "sha256-wwdLS7qmsl6YYLQ1EboYpiJR131CeZNj1Z6hrGQHnxs=",
"Markdig.dll": "sha256-34Ry04hh+o21Q3VDOJoD0lmCasZYDBsC9CvOeWz3BjI=",
"Markdig.SyntaxHighlighting.dll": "sha256-YEfO9OsS0T4kDjPXOW2pJF8qg62omn4UYMy/C2tcmC4=",
"Microsoft.AspNetCore.Authorization.dll": "sha256-IsV1p8+7qyVgHgqn8Yon3RZfqKDNjdC/kTwzUwtaAlY=",
Expand Down
Binary file modified _framework/blazor.boot.json.br
Binary file not shown.
Binary file modified _framework/blazor.boot.json.gz
Binary file not shown.
20 changes: 18 additions & 2 deletions data/lessons/path.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
title: Parsing
instructions: |
Parse the given JSON Path text into a `path` variable.
inputTemplate: ''
contextCode: |-
using System.Text.Json;
using System.Text.Json.Nodes;
Expand All @@ -42,7 +41,24 @@
}
}
solution: |-
var path = JsonPath.Parse(pathText);
using System.Text.Json;
using System.Text.Json.Nodes;
using Json.Path;
namespace LearnJsonEverything;
public class Lesson : ILessonRunner<PathResult>
{
public PathResult Run(JsonObject test)
{
var data = test["data"];
var pathText = "$.foo.bar";
var path = JsonPath.Parse(pathText);
return path.Evaluate(data);
}
}
tests:
- data: { "foo": { "bar": "a string" } }
result: ['a string']
Loading

0 comments on commit 1f65e4c

Please sign in to comment.