I have an IEnumerable list of date / value pairs that I return as a Json list for the fleet. However, when I call JsonResult (), the result is as follows:
[{"Date":date1, "Value":value1}, {"Date":date2, "Value":value2}...]
Fleet expected
[[date1, value1], [date2, value2]...]
Is there any easy way to get the MVC structure to output such objects, or do I need to write my own seralizer / StringBuffer code? In this case, I don’t even need to display the field names, only the values themselves.
source share