I have an object, it has a DateTime property... I want to pass that object from an .ashx handler back to a webpage via AJAX/JSON... I don\'t want to use 3rd party controls..
There is actually a nice clean way to do this without knowing the wrapper type or even needing a wrapper object.
You use JavaScriptConverter to convert your object to a Uri that also implements IDictionary. JavaScriptSerializer will serialize this as a string.
This hack is described here: Custom DateTime JSON Format for .NET JavaScriptSerializer