In PHP to return some JSON I would do:
return json_encode(array(\'param1\'=>\'data1\',\'param2\'=>\'data2\'));
how do I do the equivalent
The simplest way it may be like this:
public JsonResult GetData() { var myList = new List(); //populate the list return Json(myList); }