Skip to main content

参数

string
必填
Minifying 前要 parse 的 JSON string。function 使用 string type checking 读取这个 argument。
DecodeOptions
Parsing input JSON 时使用的 optional decode options。boolean 设置 useNull。table 可以设置 useNull 和 maxDepth。

返回值

string
Parsing 并用 default encode options re-encoding input 后产生的 JSON string。

类型

DecodeOptions

控制 JSON 解析行为。

示例

Parse valid JSON,并用 default compact JSON output re-encode。