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:
13
apps/lib/json_native/tests/compat_smoke.nyash
Normal file
13
apps/lib/json_native/tests/compat_smoke.nyash
Normal 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")
|
||||
Reference in New Issue
Block a user