Question Samantha Forish · Jun 16, 2023

I am working with a REST API JSON Response that contains a list of integers (departmentids).

JSON Response:

{
"status""ACTIVE"

I am having trouble getting that to parse into my custom message structure using the %JSONImport method.

do pResponse.%JSONImport(tHttpResponse.Data.Read())

Here is my custom message class (pResponse):

%JSON.AdaptorAs

This is how the response parses in the message viewer trace:

How should I be defining the departmentids property in order to display in the XML Viewer? 

1
0 318