JSON serializer update to serialize datetime and ObjectId