Posted: 14 Mar 2015 10:26 EDT Last activity: 9 Dec 2016 12:58 EST
How to get JSON response from Integrator Service-REST
I am trying to implement REST services in Pega, where Pega accepts the request from external application and return the response in JSON format. The response can be a Page List or Page Group. How do I parse the data of the Page(List/Group) in JSON format for sending the response?
For the time being, I am parsing the Reponse page to json using the Public API, and sending the response in the form of an out Param. In the Service-Rest rule, I am mapping the Response to output Parameter of the activity.
Also, since the requirement is to create a Service-Rest rule, I am unable to use the out-of-box connect -rest functionality.
I am also looking for the same answer. trying to create a case exposed through a REST service. If i return the svcOutput page as an XML stream, it works but not as a JSON message. I get a mapping error.