This is my incoming JSON packet:
{
"schema":{
"rid":0,
"$esn":"eventhub1",
"properties":[
{
"name":"deviceId",
"type":"String"
},
{
"name":"product",
"type":"String"
},
{
"name":"data.Temperature",
"type":"Double"
},
{
"name":"data.Humidity",
"type":"Double"
},
{
"name":"Diagnostic-Id",
"type":"String"
}
]
},
"$ts":"2019-12-16T14:34:10.159Z",
"values":[
"xxxx",
"testProduct",
27.399,
15.247,
"xxxxxx"
]
}
How can I de-seriazlie the $ts field? Since I cannot use the $ filed in front of property name, which way should I choose to move forward?
This is my model to deserialize:
public class Event
{
public Schema schema { get; set; }
public List<object> values { get; set; }
public int? schemaRid { get; set; }
//public DateTime $ts { get; set; }
}