Back to home@uckkk

dsh-json-flatten

@{name=dsh-json-flatten; version=0.1.0; description=JSON 扁平化:嵌套 JSON ↔ 点号扁平键互转(支持数组索引); type=module; main=./index.js; exports=; files=System.Object[]; dsh=; keywords=System.Object[]; author=istone <ad571@qq.com>; license=MIT; peerDependencies=}.description

Stars
0
Language
JavaScript
Created
Aug 16, 2026
Updated
Aug 17, 2026
GitHub repo

Introduction

dsh-json-flatten · JSON 扁平化

嵌套 JSON ↔ 点号扁平键互转(数组用 [index])。纯 Node 实现。

提供的工具

工具作用
flatten_json嵌套 ↔ 扁平互转

安装

dsh plugin add dsh-json-flatten

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-json-flatten"

用法示例

把这个嵌套 JSON 展平
→ 调用 flatten_json(data={a:{b:1,c:[2,3]}})