title: Consume Odata Service and get result in JSON
body: <p>I am consuming odata service using DataServiceContext and want to return data in json format.</p>
  
  <p>I am looking something like this: 
  <a href="https://stackoverflow.com/questions/5414360/odata-query-with-dataservicecontext-and-get-result-as-json">Odata Query with DataServiceContext and get result as json</a> </p>
  
  <p>If I try to add any request header in the sending request event. I can't see that header in fiddler. Although the event is firing which I have confirmed.</p>
  
  <p>I came across "context.Format.usejson" and try to search it but didn't find anything which I can understand. Can somebody help me please ?
  <a href="https://stackoverflow.com/questions/11477172/using-odatalib-to-call-a-wcf-data-services-service-operation-and-json">Using ODataLib to call a WCF Data Services service operation and JSON</a></p>
  
  <p>My goal is to consume to OData Service and get result in JSON format using DataServiceContext. </p>