Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.



Former Member

Hi Attasart,

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).


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question