use the bson json (de-)serializer if present, it helps with datetime.