json.net: DateTimeStringConverter gets an already DateTime converted object in ReadJson()
问题 Prerequisites: JSON.Net 11.0.2 I need to store the UTC DateTime round-trip date/time pattern via a JSON based REST-API. string utcTimestamp = DateTime.UtcNow.ToString( "o" ); // 2018-11-27T22:35:32.1234567Z So I wrote myself a DateTimeStringConverter to ensure no local culture information gets involved. class DateTimeStringConverter: JsonConverter<DateTime> { public override void WriteJson( JsonWriter writer, DateTime value, JsonSerializer serializer ) { string convertedValue = value.ToString