I'm using Sitecore 7.0 to execute a get request that returns a Json result. I'm able to see the Json result but the request is responding with HTML and my JSON string is buried inside it all.
I'm believe that I have created the controller/item rendering incorrectly.
First I created a controller rendering where Controller Name and Controller Action are correctly filled out.
This is where I think I'm going wrong but have don't know where to go next. What I would do is create a Sitecore page and add that controller rendering to it. Currently the Generic template DOES have HTML to it that I'm seeing.
What is the correct way to include that controller rendering so that my controller action is hit in ASP MVC?
If I create an empty template and empty layout (blank .cshtml) would that correctly return my json string so that jquery ajax can parse it?
Or more generally, what is the correct way to execute GET request with JQuery ajax, Sitecore, and ASP MVC. I was using the following as a starting point and it worked for POST (returns JSON correctly) but I'm not sure what to do to get it to work for a GET request. http://www.bugdebugzone.com/2014/06/tutorial-how-to-make-ajax-call-in.html