ODATA Support for JSON data using java and mysql

We have requirement to create ODATA supported Rest API. We will have to use Java and Mysql for this purpose. Data will be in JSON format which is dynamically changing and not possible to define the exact fields.

I’m looking at libraries like Apache Olingo for this. Documentation doesn’t have that much of information about JSON support. Any thoughts on this is appreciated.

Did you try DataDirect Cloud SaaS offering? It helps you produce OData without any coding. Data can be accessed in JSON as well as Atom. You can also look at their other offering if you want to host his tsolution for yourself. I work for them and would be happy to answer any questions you may have.

Apache Olingo is supporting JSON. It has a serializer for mapping from JSON – org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.

But I’m not sure what do you mean by dynamically changing and not possible to define the exact fields. Do you want to use Open Types from OData? Unfortunately, I have no experience with them in Apacha Olingo.