Is there a way to change how the DataContractJsonSerializer serializes dates?
Currently, it'll convert a date to something like:
{ "date": "/Date(1260597600000-0600)/" }
I want to convert it into human readable date format.
I am building a RestApi using openrasta framework. Can i write OperationInterceptors which will at some stage before serialization/deserialization convert JSON datetime format to something which is human readable?Or is there any other way to do it?
Finally i have handled this issue as below(c#)
In this case we can specify the formats which we want to support which i have kept inside web.config
Let me know for further clarifications.