object-deconstructed
v1.0.0
Published
提供了解构简单对象为多层对象的方法
Downloads
1
Readme
##安装
npm install object-deconstructed
##导入
const objdec = require('object-deconstructed')
##使用
let obj = {
"appName": "医疗自助服务系统",
"type": "ZZJ",
"mock": false,
"fullscreen": false,
"corpInfo.hospitalId": 1402,
"corpInfo.hospCode": 3306011247
}
const newObj = objdec.ChangeJson(obj)
//result is json object:
newObj = {
"appName": "医疗自助服务系统",
"type": "ZZJ",
"mock": false,
"fullscreen": false,
"corpInfo":{"hospitalId": 1402},
"corpInfo":{"hospCode": 3306011247}
}
##开源协议 ISC