Question
2
Replies
2242
Views

Knowledge Expert
FR
Posted: December 18, 2018
Last activity: February 6, 2019
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:
- 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)
- 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.