I've a requirement to log the Raw Request JASON for Rest-Service POST method in BLOB to be sent to external team if case of any failure scenario.
To achieve this, I tried with both SERIALIZE and @(Pega-RULES:Page).pxConvertPageToString(tools, mystegpage,"JASON") but in both the scenarios I'm getting the JASON with the pxObjClasses. But I want to get the raw format of JASON(the one we get in pyRequestData). Any suggestions how I can achieve it. I'm in Pega 8.7.1 version.
Thanks and regards,
***Edited by Moderator: Pooja Gadige to move from Pega Academy to Product, add product details tag, add capability tag***
This is expected behavior, when converting the page/pagelist into json by using function then pxObjclass will get included in return JSON value. In pega OOTB we are not having any logic to exclude pxObjclass during the conversion.
But by using regex function you would be able to remove the pxObjclass from return json value. Please refer below article to know how to remove pxObjclass from JSON.