我正在获取 xml 输出,然后我将该 xml 转换为 json 对象。格式如下所示。
{
"SOAP-ENV:Envelope": {
"@xmlns:SOAP-ENV": "http://schemas.xmlsoap.org/soap/envelope/",
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"SOAP-ENV:Body": {
"rpc:TestExampleResponse": {
"@xmlns:rpc": "http://Test.com/asi/",
"TestMessage": {
"listOfTESTS": {
"@xmlns:xmlns": "http://www.Test.com/xml/TEST",
"TESTS": [{
"id": "1",
"lastSyncDate": "12/16/2015 07:06:38",
"listOfTESTsyncrealtimeChild": null
}, {
"id": "2",
"lastSyncDate": "12/16/2015 07:06:38",
"listOfTESTsyncrealtimeChild": null
}
]
}
}
}
}
}
}
我想从 Mulesoft 中的 JSON 输出中提取测试数组。我不知道如何在 mulesoft 中提取该数组。提前致谢