I have a javascript library that is expecting this from the server but the example is in PHP
<?php
/* http://www.example.com/json.php */
$array['E'] = 'Letter E';
$array['F'] = 'Letter F';
$array['G'] = 'Letter G';
$array['selected'] = 'F';
print json_encode($array);
?>
so I trying to find how to do the above in c# asp.net-mvc given that C# arrays don't take string keys . .
public JsonResult MyAction()
{
return Json(...);
}