Configure service rest and send out pagelist data in json format as response.
I have a requirement where client will be invoking the service rest held in pega, we take request ,fetch the results from db on a pagelist say ResultPage.pxResults and send this pagelist data out as a JSON response.
Can any one let me know in detail how to convert pagelist data into JSON format.
Also for configuring service rest do i need to create any data mapping rules or class.. Please help.