I am struggling to iterate through a nested JSON and extract the desired output. Can someone assist me in retrieving the bpmn:startEvent id value from the JSON provided below?
{
"bpmn:definitions":{
"@attributes":{
"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL",
"xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI",
"xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC",
"id":"Definitions_1",
"targetNamespace":"http://bpmn.io/schema/bpmn"
},
"bpmn:process":{
"@attributes":{
"id":"Process_1",
"isExecutable":"false"
},
"bpmn:startEvent":{
"@attributes":{
"id":"StartEvent_1"
}
}
},
"bpmndi:BPMNDiagram":{
"@attributes":{
"id":"BPMNDiagram_1"
},
"bpmndi:BPMNPlane":{
"@attributes":{
"id":"BPMNPlane_1",
"bpmnElement":"Process_1"
},
"bpmndi:BPMNShape":{
"@attributes":{
"id":"_BPMNShape_StartEvent_2",
"bpmnElement":"StartEvent_1"
},
"dc:Bounds":{
"@attributes":{
"x":"173",
"y":"102",
"width":"36",
"height":"36"
}
}
}
}
}
}
}