Hey all, I've just started developing with Web API so I followed this
tutorial. I had no problem following the tutorial...it was very straight forward and I followed it exactly. Unfortunately I can only seem to get an XML response when I go to <mysite>.azurewebsites.net/api/contacts
The default should be Json, correct? If anyone has seen this before or might know what the problem is I would greatly appreciate it!
Just found out that web broswer default to "application/xml" in the header...so the browser will show XML even if the default is json. It works fine with my application though
gacsoftwared...
0 Points
2 Posts
New to Web API - can't get json response
Nov 25, 2012 02:35 AM|LINK
Hey all, I've just started developing with Web API so I followed this tutorial. I had no problem following the tutorial...it was very straight forward and I followed it exactly. Unfortunately I can only seem to get an XML response when I go to <mysite>.azurewebsites.net/api/contacts
The default should be Json, correct? If anyone has seen this before or might know what the problem is I would greatly appreciate it!
gacsoftwared...
0 Points
2 Posts
Re: New to Web API - can't get json response
Nov 25, 2012 03:45 PM|LINK
Just found out that web broswer default to "application/xml" in the header...so the browser will show XML even if the default is json. It works fine with my application though