I'm migrating old code using .net 3.5 which had some asmx webservices which returned json data. These services returned the json wrapped on a "d" property which was introduced on .net 3.5 for security purposes.
When moving these webservices to mvc controller actions, there is no d property which concerns me as the "d" property was a security fix introduced for a reason.
Should I wrap the Json result on a d property myself or am I doing something wrong?
public JsonResult GetJsonData()
{
return Json(2);
}
this outputs:
2
instead of:
{ "d": "2" }