Search code examples
odata

OData JSON & ATOM Formats


I have this question on OData based services. As a consumer of OData Service, can I assume that any OData compliant data service would expose its data in ATOM and JSON format.

Is it possible that there is a OData service that expose its feeds in ATOM but not in JSON format?

In my application as a consumer of OData (OData CLient) we are always fetching the data in JSON format. This would fail when the OData Service only supports ATOM.


Solution

  • The V3 documentation is unambiguous:

    • OData Services MUST support the ATOM encoding.
    • OData services SHOULD support a JSON encoding.