Avoid triggering warning when deserializing Bson to Json.