dsh-json-flatten
其他 活跃维护

dsh-json-flatten

uckkk/dsh-json-flatten

轻量级JSON处理工具,可完成嵌套JSON结构与带点号分隔的扁平键双向转换,转换过程自动兼容数组索引标识,开箱即用,无需复杂配置即可大幅简化多层级嵌套JSON的序列化与反序列化操作,高效完成数据处理任务。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-json-flatten
git clone https://github.com/uckkk/dsh-json-flatten.git
git clone git@github.com:uckkk/dsh-json-flatten.git
README.md main

dsh-json-flatten · JSON 扁平化

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

提供的工具

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

安装

dsh plugin add dsh-json-flatten

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

用法示例

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

安装

dsh plugin add github:uckkk/dsh-json-flatten

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-json-flatten

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。