Question

3
Replies
419
Views
Close popover
Leela Krishna Devineni (LeelaKrishna369)
CPFB
Senior Consultant
CPFB
SG
LeelaKrishna369 Member since 2017 14 posts
CPFB
Posted: September 10, 2019
Last activity: September 11, 2019
Closed
Solved

Map Json response to Page in Activity

Received Json response as below and tried using tools.getStepPage().adoptJSONObject(tools.getStepPage().getString("pyResponseMessage"));

and getting error as follows as we got response in Page for every property. Please let us know to map below mentioned Json response. Above code is working if we are receiving single value for the property.

Response:

{"Field1":{"date":"1960-09-11","s":"T","result":"TEMP"},"Field2":{"date":"1990-09-11","s":"T","result":"1960-04-10"}}

Error: The property Field1 was of mode Page while adoptDictionaryDefinition(ImmutablePropertyInfo, boolean, boolean) was expecting String mode. Details: the mode has been reset to match the property's definition.

Pega Platform
Moderation Team has archived post