json对象去掉键key的双引号
//格式化扩展ip,去掉json字符串key的双引号
const assetNetworkExtend = {"create":[{"ipv4":"128.0.2.155"},{"ipv4":"128.0.2.158"}]}
const extendIps = assetNetworkExtend.replace(
/("(\\[^]|[^\\"])*"(?!\s*:))|"((\\[^]|[^\\"])*)"(?=\s*:)/g,
'$1$3'
)
console.log(extendIps) // {create:[{ipv4:"128.0.2.155"},{ipv4:"128.0.2.158"}]}