diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 18:52:27 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-06 18:52:27 +0200 |
| commit | a29577e869ed6fc25ab4ed3c5014f5811cb6215f (patch) | |
| tree | d702ffa36249953d4074d0198f3d84038e1d1df4 /test/json.lua | |
| parent | 016a86ac3fe4ff895259cb86d55008691bc5e3c4 (diff) | |
| download | bidi-a29577e869ed6fc25ab4ed3c5014f5811cb6215f.tar.gz | |
Added custom font and refactor some of the code
Diffstat (limited to 'test/json.lua')
| -rw-r--r-- | test/json.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/json.lua b/test/json.lua new file mode 100644 index 0000000..f656942 --- /dev/null +++ b/test/json.lua @@ -0,0 +1,10 @@ +local file = io.open("test/test.json", "r") +local content = file:read("*a") +file:close() + +local data = json.decode(content) + +print("name: " .. data.name) +for _, n in pairs(data.numbers) do + print(" - number: " .. n) +end |
