Question

2
Replies
1762
Views
DmitryK7052 Member since 2014 7 posts
Knowledge Expert
Posted: 1 year ago
Last activity: 1 year 7 months ago
Closed

Map response to JSON in REST Service

There are two ways of mapping response to JSON in REST Service:

  1. Use "Map from: JSON" in service rule, but in such case all Pega date properties (20181218) would not be converted to JSON format (2018-12-18)
  2. Use @pxConvertPageToString(tools,.Response,"json"), but in that case all Pega integer and decimal properties will be surrounded with quotes in the response

Is there "silver bullet" exists? Easy OOTB way to convert Pega clipboard structure to valid JSON with respect to all data types.

Data Integration
Moderation Team has archived post
Share this page LinkedIn