I'm developing in javascript and I need to access to a value in a JSON like this :
{
"soap:Envelope": {
"$": {
"xmlns:soap": "http://schemas.xmlsoap.org/soap/envelope/",
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"xmlns:wsa": "http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:wsse": "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",
"xmlns:wsu": "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
},
"soap:Header": [{
"wsa:Action": ["RetrieveResponse"],
"wsa:MessageID": ["urn:uuid:1a13717a-dc14-4379-b0d0-51065965d49a"],
"wsa:RelatesTo": ["urn:uuid:242f637e-9ce4-485e-ba8c-e2149494bb57"],
"wsa:To": ["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"wsse:Security": [{
"wsu:Timestamp": [{
"$": {
"wsu:Id": "Timestamp-6ca32f3e-f16e-4ce1-af48-ba04df471780"
},
"wsu:Created": ["2018-07-10T13:59:07Z"],
"wsu:Expires": ["2018-07-10T14:04:07Z"]
}]
}]
}],
"soap:Body": [{
"RetrieveResponseMsg": [{
"$": {
"xmlns": "http://exacttarget.com/wsdl/partnerAPI"
},
"OverallStatus": ["OK"],
"RequestID": ["33593cff-ff63-4c39-8d80-43312f6c4715"],
"Results": [{
"$": {
"xsi:type": "QueryDefinition"
},
"PartnerKey": [{
"$": {
"xsi:nil": "true"
}
}],
"ObjectID": ["37e75ee6-9a5b-4a35-b3f8-be036a5889c1"],
"Name": ["Scoring-Query"]
}]
}]
}]
}
}
I need to access to the "ObjectID": ["37e75ee6-9a5b-4a35-b3f8-be036a5889c1"],
like result.soap:Envelope.soap:Body.
but I don't manage to get it because of the character ':'. I tried to escape it but it didn't work. Thanks for your help!