// JSON格式对象转为自定义数组 let metaData = { "BUGLY_APPID": "90d9819271", "ClientChId": "365you.tfqdkshbttddzzrb.5006000705", "MainChId": "68373", "LEBIAN_SECID": "idlpy4wt.c" }; let arr = []; for (let k in metaData) { let one = { key: k, value: metaData[k], name: '' } arr.push(one); } console.log(JSON.stringify(arr));