Change oData response in JSON
Hi all oData and Gateway experts,
I'm very new in this topic and would like to ask some help from you guys.
Just wondering when getting response from Gateway in JSON format, is it possible to remove __metadata block?
I'm asking because if I going to return 100 records and they are all have __metadata block, it will slow down the communication.
Sreehari V Pillai replied
Be noticed that we are developing OData services. As per the standards(yes, we have to follow the standards), metadata block is a mandatory component of the return Odata payload. You can not remove that part. And , Odata is not intended for transferring heavy data from server to the browser. If you come across such a situation , you need to follow lazy loading (use $top and $skip to control the data flow).