I have an object with a property of type as "object" (need this for have a generic code).
Public Property Valeur() As Object
I serialize it with DataContractJsonSerializer , and i have this:
}, {
"Desc": "Date ouverture",
"Id": "DatOuverture",
"Mode": 0,
"Valeur": "\/Date(1482966000000+0100)\/"
}, {
So, when i deserialize it, the serializer cast "Valeur" in string, not in dateTime.
Valeur = "\/Date(1482966000000+0100)\/"
I tried with "AlwaysTransmitTypeInformation", but that change nothing. When i write in the property before serialise, she's well in "DateTime" type, not string.
For information, Valeur can be a different type that dateTime.
Anybody have an idea ?
Regard.