Files
marqdo/tests/lib/json-roundtrip.mq.md
T
cflmyandCursor 1f23e2ed93 Add module namespaces and harden L1/agent after the import redesign.
Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 13:28:32 +08:00

311 B


title: json roundtrip

lib/fs.mq.md lib/json.mq.md


main

*raw = > fs.read_text path=sample.json *

*obj = > json.parse text=raw *

*ty = > type obj *

print text=ty

*a = > json.get value=obj key=a *

print text=a

*out = > json.stringify value=obj *

print text=out