Question

3
Replies
86
Views
charishmak Member since 2016 4 posts
JPMC
Posted: July 27, 2020
Last activity: August 5, 2020

how to handle Nested JSON which is coming as response from Connect-Rest

I am using a connect Rest service with Get method where Map to is JSON and Map key is .response page and below is the format for successful and failure response

The failure response is coming in the right format and I am able to see two fields under response page like response.errorcode, response.errordescription but issues is with the success response

The expected response is : response.HouseID but since it looks like a nested JSON the value is not captured on the page.The page looks empty,it is just having pxobjclass How to capture it? 

But when I tried clipboard and used parameter as key type then i am able to see the parameter value as 

param.response:  {"HouseID": {"HouseID": "123456"}} but how can i use the value

For Success Response : {"HouseID": {"HouseID": "123456"}}

 

For Failure Response:

{

"errorCode":"103"

"errorDescription":"Missing required field XXX in the request"}

***Edited by Moderator: Pallavi to update platform capability tags***  

 

Pega Platform Data Integration
Share this page LinkedIn