Closed philderbeast closed 8 years ago
I think this happens because JsonReader
from Json.NET proactively parses the entry as DateTime based on the string content. This is further indication that we should move away from Json.NET altogether.
When using the JsonReader from Json.NET, after calling .Read() the .Value is of type DateTime. Is there the option of calling .ReadString() instead when reading a primitive as a string?
There is ReadAsString()
, but for reasons that I cannot entirely remember, I chose to go for the .Value
approach. I'll have a go at re-evaluating that choice.
Snappy turnaround time on this and good to be able to opt out of date parse handling.
In the above, the string -> a -> a' pickle (string -> a) and unpickle (a -> a') conversions work as does the ISO 8601 string -> b pickle but the b -> b' unpickle fails with the exception ...
The ISO 8601 string -> b0 pickle looks good as does the ISO 8601 string -> b1 ..