I want to use AJAX to recieve a JSON array from the controller. In php you can just return string instead of a view so you can do something like that:
$array = array(
"Hello" => "hi",
"Whatsup" => sup
);
return json_encode($array);
However, in C# you have to return ActionResult object. So until now I didn't find a good solution for "printing" the JSON array as the result.