This commit is contained in:
2025-12-07 10:15:32 -05:00
parent b89dc65e1f
commit 4ff689e299
31 changed files with 13 additions and 40 deletions

View File

@@ -0,0 +1,5 @@
[app]
name = "json"
version = "0.0.1"
authors = ["vx-clutch"]

View File

@@ -0,0 +1,34 @@
local fes = require("fes")
local site = fes.fes()
site.title = "JSON"
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
local json_pre = [[
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
]]
local json = fes.middleware.json_decode(json_pre)
site:h1("JSON")
site:note(fes.util.cc({
fes.std.h2("Before"),
fes.std.code(json_pre),
}))
site:note(fes.util.cc({
fes.std.h2("After"),
fes.std.ul({
json["userId"],
json["id"],
json["title"],
json["completed"],
})
}))
return site