using: safer seam defaults (fix_braces OFF by default) + path-alias handling; json_native: robust integer parse + EscapeUtils unquote; add JsonCompat layer; builder: preindex static methods + fallback for bare calls; diagnostics: seam dump + function-call trace

This commit is contained in:
Selfhosting Dev
2025-09-25 10:23:14 +09:00
parent 2f306dd6a5
commit 9384c80623
30 changed files with 1786 additions and 527 deletions

View File

@ -0,0 +1,13 @@
using "apps/lib/json_native/core/compat.nyash" as JsonCompat
print("compat: begin")
local doc = new JsonDocCompat()
doc.parse("{\"hello\": [1,2,3], \"msg\": \"hi\"}")
local root = doc.root()
print("kind(root): " + root.kind())
print("size(hello): " + root.get("hello").size())
print("msg: " + root.get("msg").str())
print("roundtrip: " + root.stringify())
print("compat: end")