views:

11

answers:

0

I have a controller in ASP.net MVC outputting a JsonResult like so:

 return Json(new { [...] }, JsonRequestBehavior.AllowGet);

...that looks like this:

"data":{"41_A4N1A-1":0,"41_A4N1A-2":0,"41_C4G1A-1":0,"41_C4G1A-2":0,"41_R2N1S-1":0,...

However, Highcharts' docs indicate that the data is expected like this:

"data":{"41_A4N1A-1",0},{"41_A4N1A-2",0},{"41_C4G1A-1",0},{"41_C4G1A-2",0},{"41_R2N1S-1",0},...

Note the commas instead of colons and the curly braces for each value. What .Net data structure would produce the latter results when serialized? Or, do I have to use a different library/roll my own?