Question

3
Replies
344
Views
LeelaKrishna369 Member since 2017 14 posts
CPFB
Posted: 1 year ago
Last activity: 1 year ago
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
Share this page LinkedIn