I have written my odata service consumer code which supports Odata V3. I have written Logic as mentioned here Consume Odata Service and get result in JSON
The java odata service which I am consuming is written in Odata V2. Now I want to get result as Json what is the approach. Please help.
I have tried following apporaches but I failed to get result: 1. UseJson method of data context but it supports only odata service version 3 or higher. 2. passing header as json but it gives me error.