如何将点表示法转换为JSON?下面的示例点是从BE&获得的,我需要将其转换为JSON,例如-
digraph {
"Stream|4a150498-7f00-430b-861d-88d3ea381f66" [name=Stream,inputs="
['']",Properties="{}",Position="[50,50]"]
"From|6624da0b-7b2d-4381-a2c3-4f00c9cf9e0b" [name=From,inputs="
['']",Properties="{'Database':['cloudDB'],'Measurement':
['sensorData'],'RetentionPolicy':['oneUnit']}",Position="[317,49]"]
}
Javascript中是否有方法或npm库可以帮助我实现以上目标。伙计们请分享..