Question

2
Replies
1953
Views
Dmitry Kolesnikov (DmitryK7052)
Knowledge Expert

Knowledge Expert
FR
DmitryK7052 Member since 2014 9 posts
Knowledge Expert
Posted: December 18, 2018
Last activity: February 6, 2019
Posted: 18 Dec 2018 5:59 EST
Last activity: 6 Feb 2019 3:41 EST
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.