如何去除以下JSON格式的关键部分的双引号,即“id”、“label”和“score”是需要去除的双引号下的key
nodes: [ { "id": "n1", "label": "Node 1", "score": 1.0 },{ "id": "n2", "label": "Node 2", "score": 2.2 },{ "id": "n3", "label": "Node 3", "score": 3.5 } ]
并将其转换为以下 JavaScript 格式,以便我可以使用 CytoscapeWeb 绘制图形
nodes: [ { id: "n1", label: "Node 1", score: 1.0 },{ id: "n2", label: "Node 2", score: 2.2 },{ id: "n3", label: "Node 3", score: 3.5 } ]