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?