SOURCE

let param='{\"version\":\"v1\",\"devInfoList\":[{\"cpeNum\":\"北京市-海淀区-10051229\",\"type\":\"MSG5200-XGE-8E-G5\",\"uuid\":\"100-1-8NM9VYKMACVBDMIV\",\"sn\":\"\",\"manIp\":\"\",\"wanList\":[{\"wan\":\"LAN1\",\"type\":\"ETH\",\"addrType\":\"dhcp\",\"masterWan\":\"wan1\"},{\"wan\":\"cell\",\"addrType\":\"4G\"}],\"routelist\":[{\"_id\":\"625cdcfd580d4d1c04d4a947\",\"target\":\"111.1.2.0/24\",\"nextHop\":\"111.1.1.2\"}],\"lanList\":[{\"name\":\"vlan1\",\"interfaceList\":[],\"vlan\":\"1\",\"ipAddr\":\"111.1.1.1/24\",\"dhcp\":\"enable\",\"ipPoolstart\":\"111.1.1.2\",\"ipPoolend\":\"111.1.1.254\",\"dns1\":\"114.114.114.114\",\"dns2\":\"8.8.8.8\"}],\"vrrpList\":[],\"bgpList\":[],\"vpn\":{\"vpnid\":\"100-010-1-sdwan_bj_cs202204110-537173\",\"subnetlist\":[],\"cidrList\":[{\"cidr\":\"111.1.0.0/16\"}]}}]}';
let params= JSON.stringify(param);
let waninfo=JSON.parse(params);
console.log(waninfo);
console 命令行工具 X clear

                    
>
console