DateTime Serialization

Sep 7, 2010 at 11:46 AM

I've been using an older version of Json.NET and had no issues with it, especially when serializing DateTime, I'd end up with something like:

 

 

{

"dateThing": new Date(3232343545454)

}

 

 

However, now using the newer versions I end up with:

 

 

{

"dateThing": "\"new Date(3232343545454)\""
}

 

 

Or something like that. Why the change? This breaks a whole heap of things.