`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format` binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use` now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples, man-test and tests; adds a negative gold and updates view/catalog rendering. Co-authored-by: Cursor <cursoragent@cursor.com>
783 B
783 B
title: object handle smoke import json:lib/json.mq.md
counter
+ `n`
*t = > json.parse text={"p":"{"n":","s":"}"} *
*qn = > str n *
*p = > json.get value=t key=p *
*s = > json.get value=t key=s *
*raw = p + qn + s *
> json.parse text=raw
bump
*n = > json.get value=self key=n *
n2 = n + 1
*t = > json.parse text={"p":"{"n":","s":"}"} *
*qn = > str n2 *
*p = > json.get value=t key=p *
*s = > json.get value=t key=s *
*raw = p + qn + s *
*m = > json.parse text=raw *
m
main
*c = > counter n=3 *
*ty = > json.get value=c key=_type *
print text=
ty*n= > json.get value=ckey=n * print text=n*c2= >c.bump * *n2= > json.get value=c2key=n * print text=n2