def to_json_type(self):
document_dict = self._json_safe(self._document)<EOL>self._remove_keys(document_dict, self._private_fields)<EOL>return document_dict<EOL>
Return a dictionary for the document with values converted to JSON safe
types.