Posted: 24 Jan 2016 15:10 EST Last activity: 29 Jan 2016 13:24 EST
Modify JSON response Pega 7.1.7
I need to modify the one property name in JSON response.I found the below post from Mesh and PDN. But I don't see pzExternalName property qualifier in pega 7.1.7 as mentioned in it. is there any other way to do it ?
I installed the hotfix and added pzExternalName in property qualifier but it did not work. Still the Json response is generating with propertyname and not with the value given in propertyqualifier value.
If you are using property qualifiers, you are not supposed to generate JSON using the clipboard API getJSON(). You should instead have Map From as JSON on the response tab of your service REST rule and Map From Key should be the embedded page property whose JSON representation you need.
is there any way to use getJSON() API and acheive this functionality? we use a common activity which gets the response page as parameter and generate the response for all the services so we will not be able to use Map from JSON.
Thanks praneeth. I think we cannot use this function then. is it possible to tell me the class the MAP from JSON uses to generate the JSON ? may be i'll try to write some java code around the class and see if it works.