Json-Service Response

Hi Team,

When we give a response as a Page on, Pega converts the property name as a tag and is surrounded by “”, and value also in between “”. eg: response.pyFirstName = suresh. then response like { “pyFirstName” : “suresh”}.

so if I want a tag like FirstName, so it has become obvious to create a property in that class, I can’t achieve re-usability. Instead of property-name can we pass the label of the property as a tag?

Is there any way to do that?

Hi @SureshP16655111: Can you try to add property qualifier “pzExternalName” to your required properties and check? This would hep to have a JSON attribute in different name other than the property name.

Thanks.

@SureshP16655111 we have followed the below approach. We get the fields to be displayed in UI from real time kafka data flow and these fields have to be sent to API. So these fields are dynamic. So we created properties programmatically in the backend if it doesn’t exists.

https://support.pega.com/question/how-create-property-dynamically-run-time

@SureshP16655111 Pleas go to Property advanced tab and modify the property qualifier as per your requirement.