Access JSON response with special characters

cancel
Showing results for 
Search instead for 
Did you mean: 
jose_leon_coupa
Active Member II

Access JSON response with special characters

Hi all.

I'm using a Rest call task in APS 1.9 and fetching some data from an external service; everything is good!; I'm getting the JSON below as response:

{
   "mainNode": {
       "id": "12345",
        "properties": {
            "LastModified": "2020-03-12",
            "{http://www.somesite.com/version/1.0}DocumentType": "Internal Document"
        }
    }
}

 

I need to capture the data in the Response Mapping, so I'm using the property names as below:

- mainNode.id
- mainNode.properties.LastModified
- mainNode.properties."{http://www.somesite.com/version/1.0}DocumentType"

The first two are working fine, butthe last one is not capturing the value; I've also tried:

- mainNode.properties["{http://www.somesite.com/version/1.0}DocumentType"]

but didn't work neither. Dows anybody know how to get this value? 

 

Thanks,