Skip to content

Adding datatype explicitly #3

Open
@tpluscode

Description

@tpluscode

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions