I've found a million posts about serializing .NET dates to json. Yet, I'm unable to get any of those to work correctly.
Here is my serialzier code so far:
string javascriptJson = JsonConvert.SerializeObject(result,
new JavaScriptDateTimeConverter());
return Content(javascriptJson, "application/json");
This returns an unescaped string containing the correct JSON, and looks completely right when viewing it in the browser. (e.g. dates looks like : date: new Date(023198928) and as far as my limited javascript skill goes, that is how it should look like)
However, I can not get JQuery to understand this, either I get back a plain javascript string, or it simply fails, I want the deserialized object.
I've tried both $.get and $.getJSON
Ideas ?