哔哔one
let json = { "path": "test", "clients": [ { "client": "1.2.2.2;1.1.1.1", "Access_Type": 2, "name": "test_01" }, { "client": "1.2.2.4;1.1.1.4", "Access_Type": 1, "name": "test_02" }, { "client": "1.3.3.3", "Access_Type": 1, "name": "test_03" } ]}let clients = [];json.clients.map(ele1=>{ let {client,Access_Type,name} = ele1; client.split(';').map(ele2=>{ clients.push({client:ele2,Access_Type,name}) })})json['clients']= clients;