cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Experts,

I have been working with both oData and Json Models. Now I want to know on technical grounds, that what factors lead to the selection of a model?

When to use which model?

0 Likes
View Entire Topic
SergioG_TX
SAP Champion
SAP Champion
0 Likes

oData Models are usually for larger sets of data, while JSON models are for smaller sets of data. It depends on what you will be using it for. For example, if you have a grid and you are binding a view from your SAP HANA db, you could easily use the oData model as you can do a direct bind. It would be a benefit to use oData because of the pagination, etc.

if you don't have a direct bind from the DB view into a control, then you could use a JSON model. for example, you could use a JSON model (as well as an OData Model) for a simple drop down box if you needed to alter some of the properties in the drop down items.

you however, could get data out of both models and you can get JSON objects. I hope this helps.