marqdo

lib/json — JSONok

stdlib/json.mq.md

文档

json:lib/json.mq.md

main

说明

Shared JSON helpers for EN and ZH docs. Prefer parse, stringify, and quote. Build maps with tables or table.put — not json.set chains.

`obj` = [json.parse] text="{}"
`ty` = [type] `obj`
打印 内容=`ty`
`out` = [json.stringify] value=`obj`
打印 内容=`out`
Functions
Variables
  • description text
    Shared EN/ZH path; parse and stringify (code-as-docs pilot)
  • markup text
    occlusion
  • obj map · 0
  • out text
    {}
  • title text
    lib/json — JSON
  • ty text
    map
可执行知识(辅助)

运行与结果

map {}
完整源码
---
markup: occlusion
title: lib/json — JSON
description: Shared EN/ZH path; parse and stringify (code-as-docs pilot)
import:
  json: lib/json.mq.md
---

# main

Shared JSON helpers for EN and ZH docs. Prefer parse, stringify, and quote.
Build maps with tables or table.put — not json.set chains.

**`obj` = [json.parse] text="{}"**
**`ty` = [type] `obj`**
**打印 内容=`ty`**

**`out` = [json.stringify] value=`obj`**
**打印 内容=`out`**

Variable