Files
marqdo/lib/json.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

45 lines
624 B
Markdown

---
title: lib/json
description: JSON parse/stringify (shared EN/ZH import)
---
## parse
+ `text`
**> host_json_parse text=`text`**
## stringify
+ `value`
+ `indent`=None
**> host_json_stringify value=`value` indent=`indent`**
## get
+ `value`
+ `key`
**> host_json_get value=`value` key=`key`**
## keys
+ `value`
**> host_json_keys value=`value`**
## quote
+ `text`
**> host_json_quote text=`text`**
## set
+ `map`
+ `key`
+ `value`
**> host_map_set map=`map` key=`key` value=`value`**
## append
+ `list`
+ `item`
**> host_list_append list=`list` item=`item`**