I'm pulling json messages from a jms queue, where most of them filter properly. However there are specific messages with XML payload. What would be the best way to filter this type of message?
{
"envCode": "RWCS",
"appCode": "TIBCO",
"type": "INFO",
"hostName": "",
"interfaceCode": "TIB_EXP.EMAIL",
"interfaceName":"EMAIL",
"transactionID":"6130814352546724324134",
"transactionDomain":"",
"transactionType":"",
"brand":"TST",
"timestamp": "2018-06-16T15:40:47.225-07:00",
"auditStep": "REPORT",
"message": "GET TOKEN PROCESS SUCCESS",
"payload":"<?xml version="1.0" encoding="UTF-8"?>
<RequestActivityOutput><Header>HTTP/1.1 200 OK&#xD;
Content-Type: application/json; charset=utf-8&#xD;
Date: Wed, 13 Jun 2018 22:40:47 GMT&#xD;
cache-control: no-cache, no-store, must-revalidate&#xD;
connection: close&#xD;
expires: 0&#xD;
x-powered-by: ASP.NET&#xD;
set-cookie: ASP.NET_SessionId=fdsafsaf40pu2mgwtzwm; path=/; secure; HttpOnly&#xD;
set-cookie: xyz_adm_adm_org_user_language_code=en; expires=Tue, 11-Sep-2018 22:40:48 GMT; path=/&#xD;
set-cookie: xyz_adm_adm_org_user_locale_code=en-US; expires=Tue, 11-Sep-2018 22:40:48 GMT; path=/&#xD;
set-cookie: xyz_adm_adm_org_user_time_zone_id=; expires=Tue, 11-Sep-2018 22:40:48 GMT; path=/&#xD;
pragma: no-cache&#xD;
</Header><statusLine><httpVersion>HTTP/1.1</httpVersion><statusCode>200</statusCode><reasonPhrase>OK</reasonPhrase></statusLine><binaryContent>eyJhY2Nlc3NfdG9rZW4iOiJBQUVBQUZvS0Z1emFXOWtSbmhtemtrMVNESmM3bWxhZDU0TWZjMlM4aVZKeE1SV2I4YklkYzVBTk9KZFN3WUpER3MwX2pGYXZWaGRVQ3dOUGZnelpmWFRhVU5gfdsRl9KOXFNUUxzYncwSHc1ZEdlcm90azh3RXNtSWpmY0V4bFRRNndiRnBJNEVCTmRlWUtVUVpkUXJWRldxVXNNSHVISTg4OVhFaHFxU1dnOWFxbU04cE1tWkM4OWVMb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ijCD86O9Ns-WJ0ReE1yFXlcpWJtLEDrjbcQAAAAEcMox1we29YB3PsqrsD7Pfjmmew1qFWKWB_S3F580WQV1FHF9nMAv9fqcx-ol88etz6XFdDXwQH9yPB-XHY2gpX2e1vp-o7Cg4TBDd20-j0R4E4cppaZZiGqGSkULGF7hzrygfdsk5P_qHoE0JiFpFkWn"}</asciiContent><Headers><Content-Type>application/json; charset=utf-8</Content-Type><Date>Wed, 13 Jun 2018 22:40:47 GMT</Date></Headers><DynamicHeaders><Header><Name>x-powered-by</Name><Value>ASP.NET</Value></Header></DynamicHeaders></RequestActivityOutput>",
"error":{
"errorType":"",
"severity":"",
"errorCode":"",
"errorMessage":"",
"stackTrace":"",
"fullClass":"",
"class":"",
"processStack":"",
"engineName":"",
"processID":"",
"restartedFromCheckpoint":""
},
"AdditionalInformation": {
"name": "NUMBER",
"value": "084325672"
}
}