I am consuming a new RESTful API that a 3rd party has developed for a SSO API to one of my companies systems.
In the documentation it gives the following examples of data interchange, what I find strange is that for IE10 they say JSON is returned, and for Chrome and Firefox XML is returned.
I assummed one data interchange type would be used rather than multiple? Now when I parse the data I am going to have to check whether the type is JSON or XML first which doesnt seem correct? Shouldnt the RESTful API define one data interchange type rather than different ones for different browsers?
Examples:
Chrome/Firefox:
<VerifyTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://schemas.datacontract.org/2004/07/MicrosSingleSignOnService.Models">
<Status>1</Status>
<TokenKey>test@testemail.com</TokenKey>
</VerifyTokenResponse>
IE10 Json:
{"Status":1,"TokenKey":"test@testemail.com"}