I have created a Odata Web API service, by default this service returns data in JSON format. How can I get the data in the XML format?
Thanks
I have created a Odata Web API service, by default this service returns data in JSON format. How can I get the data in the XML format?
Thanks
If you are using OData V4, JSON is the default and recommended format for response payload and also the OASIS standard. So I highly recommend you to use JSON unless you have special reasons. If you have to get XML format, the thread WebAPI OData $format to xml may be helpful.