Removing pxObjClass from Pega API JSON response

We have an API (Service-REST) in Pega as takes the data from external system and creates the case id in pega and send it through the response ..

Recently System is upgraded from 7.3.1 to 8.7.3 and started observing the pxObjClass is included in the response .

Configuration of response in V 7.3.1

Configuration of response in V8.7.3 (After upgrade).

@Brahmesh@ Seems like you have pasted wrong screenshot of configuration in 8.7.3. Property names are different in both the versions.

@SanthoshRanga Updated the post by adding correct snapshot.

@Brahmesh@ HI Can you please check the below post,

@SrinidhiM As i mentioned above.. It worked in 7.3.1 and recently upgraded to 8.7.3 where pxObjClass is started appearing in the response .I was looking for ,Is it a bug in 8.7.3 ? what is the reason for changing this behaviour in pega 8.7.3.

@Brahmesh@ from the mapping method drop-down, pick legacy and try it

@Brahmesh@

You can use the JSON data transform in the response and use map all data and select the exclude properties option in the second tab of the json where you can give pxobjclass. This removes the pxObjClass from json response.