How to avoid _entityName and _instanceName to be returned in rest response?

How to avoid _entityName and _instanceName to be returned in rest response ?

To be precise, I need to hide _entityName and _instanceName from json response only when entity returns by custom service method.

Resolved by Custom Controller