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>
515 B
515 B
title: lib/json — JSON description: Shared EN/ZH path; parse and stringify
lib/json.mq.md
main
Import lib/json.mq.md from both English and Chinese docs (no translated twin). Functions: parse(text), stringify(value), get(value, key), keys(value), quote(text) — JSON string literal with quotes (for building request bodies). Objects become the map runtime type.
*obj = > json.parse text={} *
*ty = > type obj *
print text=
ty
*out = > json.stringify value=obj *
print text=
out