Hi,
in .net mvc my action looks like:
public ActionResult TestAjax(string testID)
{
return Content(@"{first: ""1"", second : ""2""}");
}
In my javascript I am doing:
function(data) { alert(data.first); }
I am getting [object Object] as the output, why is that?
Is my JSON string wrong?