Hi
The org.bson.json.JsonReader does not accept fields with ISODate() as content for a current date. Since this is possible in the shell and the JsonReader already accepts Date() as input it would be nice if ISODate() would share the same behaviour. Or am i missing something?
In visitDateTimeConstructor() this case is already handled like this:
JsonToken token = popToken(); if (token.getType() == JsonTokenType.RIGHT_PAREN) { return new Date().getTime(); }
Thanks for looking into this!
- related to
-
JAVA-2024 JsonReader handles `Date()` incorrectly
- Closed