I'm using ApiController and I can't get the call to return anything other than XML.
public class GuideController : ApiController
{
[AcceptVerbs("GET")]
[HttpGet]
public string Get()
{
Item item = Item.GetTestData();
string json = JsonConvert.SerializeObject(item);
return json;
}
}
Ideally, I want to return JSON normally but I'd settle for returning raw strings instead of XML wrapped ones.