My controller method just return String value. When I called JSON from my view page, I don't see any value.
controller method
public string test(int i)
{
return "Hello world " + i;
}
Inside View,
$.getJSON(['../Feeds/test/', 1, '/'].join(''),
function(json) {
alert(json.toString());
});
If I run this into Mozilla, I can see "Hello world 1" in response but don't get any alert. What is wrong here?