on 03-16-2021 10:31 AM
How JSON is Useful over oData??
hi ushalekha,
JSON is just a data-interchange format based on JavaScript.
REST is an architecture style whereas OData is a specific implemenation of REST designed to generate and consume data, which supports two formats, AtomPub and JSON.
So the difference between JSON with plain REST and OData are the options in OData for data manipulation eg, if we query data using OData protocol, we can specify the below options in the URI,
We can do projection, link the resources, etc. and all these options are available out of the box. Now imagine if we had to provide all these features in our own REST service then we would have to,
It is not only lot of work but also leads to inconsistencies and creates a learning curve for our data consumers.
Where you can use JSON for testing your application and by using mock server you can use JSON data as service.
Thanks and regards,
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.