Open
Description
When a class is serialized DateTime
values should include @type
so that they can be interpreted correctly and not as xsd:string
. This could be an opt-in feature.
public class Model
{
public DateTime DateTime { get; set; }
}
should produce
{
"dateTime": {
"@value": "2016-03-21T00:00:00",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
}
}
Metadata
Metadata
Assignees
Labels
No labels