When calling json.net Parse method to deserialize json array string: Either:
JArray.Parse(jsonArrayString)
Or
JObject.Parse(jsonArrayString with root node)
It always remove the trailing zero in timestamp milliseconds, e.g.
data: "TimeStamp": "2019-10-01T11:36:43.840-04:00"
,
After deserilization: "TimeStamp": "2019-10-01T11:36:43.84-04:00"
,
Found a bug before with json.net on remove trailing zero from decimals:https://github.com/JamesNK/Newtonsoft.Json/issues/1367 And updated newtonsoft.json from 10.0.1 to latest 12.0.2, but no luck with timestamp
jsonArrayString example:
[{"HistoryId": 430,"TimeStamp": "2019-10-01T11:36:43.840-04:00"}]
Then invoke with above value:
JArray.Parse(jsonArrayString)